From 5f28696f875013edd5991a546d658ce7364011c3 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 12 Jan 2024 12:30:37 -0500 Subject: [PATCH] [DATALAD RUNCMD] run codespell throughout fixing typo automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- .pnp.cjs | 4 ++-- .../scripts/dataset/mutations/create-anonymous-reviewer.tsx | 2 +- services/datalad/datalad_service/common/git.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pnp.cjs b/.pnp.cjs index a332e050f..dafc7ea9f 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -40592,7 +40592,7 @@ function makeApi(runtimeState, opts) { if (result === false) { throw makeError( ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED, - `The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer was explicitely ignored by the regexp) + `The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer was explicitly ignored by the regexp) Require request: "${requestForDisplay}" Required by: ${issuerForDisplay} @@ -40985,7 +40985,7 @@ function makeManager(pnpapi, opts) { apiEntry.lastRefreshCheck = timeNow; const stats = opts.fakeFs.statSync(pnpApiPath); if (stats.mtime > apiEntry.stats.mtime) { - process.emitWarning(`[Warning] The runtime detected new informations in a PnP file; reloading the API instance (${npath.fromPortablePath(pnpApiPath)})`); + process.emitWarning(`[Warning] The runtime detected new information in a PnP file; reloading the API instance (${npath.fromPortablePath(pnpApiPath)})`); apiEntry.stats = stats; apiEntry.instance = loadApiInstance(pnpApiPath); } diff --git a/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx b/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx index af42c71ae..34ac4f5ab 100644 --- a/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx +++ b/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx @@ -30,7 +30,7 @@ export const CreateReviewLink: FC = ({ datasetId }) => {
{error ? ( - "An Error Occured" + "An Error Occurred" ) : data ? ( diff --git a/services/datalad/datalad_service/common/git.py b/services/datalad/datalad_service/common/git.py index ea5bbae7e..49a526a02 100644 --- a/services/datalad/datalad_service/common/git.py +++ b/services/datalad/datalad_service/common/git.py @@ -14,9 +14,9 @@ class OpenNeuroGitError(Exception): """OpenNeuro git repo states that should not arise under normal use but may be a valid git operation in other contexts.""" -def git_show(path, commitish, obj): +def git_show(path, committish, obj): repo = pygit2.Repository(path) - commit, _ = repo.resolve_refish(commitish) + commit, _ = repo.resolve_refish(committish) data_bytes = (commit.tree / obj).read_raw() encoding = chardet.detect(data_bytes[0:4096])["encoding"] or 'utf-8' return data_bytes.decode(encoding)