Skip to content

Commit 76ebeff

Browse files
authored
Merge pull request #503 from martynia/janusz_main_repo_test_spell
RepoReview: spellchecker
2 parents 5a31f39 + 65083da commit 76ebeff

File tree

31 files changed

+49
-41
lines changed

31 files changed

+49
-41
lines changed

.github/workflows/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
run: |
6868
set -xeuo pipefail
6969
IFS=$'\n\t'
70-
# Needed for the advanced patter matching used in REFERENCE_BRANCH
70+
# Needed for the advanced pattern matching used in REFERENCE_BRANCH
7171
PREV_VERSION=$(git describe --tags --abbrev=0)
7272
# In case of manual trigger,
7373
# GITHUB_REF is of the form refs/heads/main -> we want main

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@ repos:
4545
additional_dependencies:
4646
- mdformat-gfm
4747
- mdformat-black
48+
49+
- repo: https://github.com/codespell-project/codespell
50+
rev: v2.4.1
51+
hooks:
52+
- id: codespell
53+
args: ["--skip=diracx-client/src/diracx/client/_generated/*, diracx-[a-z]*/tests/*, diracx-testing/*, build/*, extensions/gubbins/gubbins-client/src/gubbins/client/_generated/*, extensions/gubbins/gubbins-*/tests/*",
54+
"--ignore-words-list=CheckIn", "-w"]

diracx-cli/src/diracx/cli/internal/legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _apply_fixes(raw):
9696
raw["DIRAC"].pop("Framework", None)
9797
raw["DIRAC"].pop("Security", None)
9898

99-
# This is VOMS specific and no longer reqired
99+
# This is VOMS specific and no longer required
100100
raw["DIRAC"].pop("ConnConf", None)
101101

102102
# Setups are no longer supported

diracx-client/src/diracx/_client_importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ def __init__(
241241
def exec_module(self, module):
242242
"""Import an autorest generated module with two layers of patches."""
243243
# Import the real module and set its __name__ to the alias. This will
244-
# then corrospond to the __init__.py file + the _patch.py file from
244+
# then correspond to the __init__.py file + the _patch.py file from
245245
# plain DiracX. When calling self.original_loader.exec_module it will:
246246
# 1. Import the real module (e.g. aio/__init__.py)
247247
# 2. Import any submodules (e.g. _operations)
248248
# 3. Import the patch module from plain DiracX (e.g. _patch.py,
249-
# overriden by the DiracXPathFinder)
249+
# overridden by the DiracXPathFinder)
250250
# 4. Replace the submodules module's objects with anything in ._patch.__all__
251251
super().exec_module(module)
252252

diracx-client/src/diracx/client/_generated/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ async def do_device_flow(self, *, user_code: str, **kwargs: Any) -> Any:
380380
async def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
381381
"""Finish Device Flow.
382382
383-
This the url callbacked by IAM/Checkin after the authorization
383+
This the url callbacked by IAM/CheckIn after the authorization
384384
flow was granted.
385385
It gets us the code we need for the authorization flow, and we
386386
can map it to the corresponding device flow using the user_code

diracx-client/src/diracx/client/_generated/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ def do_device_flow(self, *, user_code: str, **kwargs: Any) -> Any:
980980
def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
981981
"""Finish Device Flow.
982982
983-
This the url callbacked by IAM/Checkin after the authorization
983+
This the url callbacked by IAM/CheckIn after the authorization
984984
flow was granted.
985985
It gets us the code we need for the authorization flow, and we
986986
can map it to the corresponding device flow using the user_code

diracx-client/src/diracx/client/patches/client/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def refresh_token(
132132

133133
if response.status_code != 200:
134134
raise RuntimeError(
135-
f"An issue occured while refreshing your access token: {response.json()['detail']}"
135+
f"An issue occurred while refreshing your access token: {response.json()['detail']}"
136136
)
137137

138138
res = response.json()

diracx-client/src/diracx/client/patches/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def refresh_token(
135135

136136
if response.status_code != 200:
137137
raise RuntimeError(
138-
f"An issue occured while refreshing your access token: {response.json()['detail']}"
138+
f"An issue occurred while refreshing your access token: {response.json()['detail']}"
139139
)
140140

141141
res = response.json()

diracx-core/src/diracx/core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def get(self, key: str, populate_func: Callable[[], T], blocking: bool = True) -
188188
self.locks[key].release()
189189
if blocking:
190190
# It is critical that ``future`` is waited for outside of the lock
191-
# as _work aquires the lock before filling the caches. This also
191+
# as _work acquires the lock before filling the caches. This also
192192
# means we can guarantee that the future has not yet been removed
193193
# from the futures dict.
194194
wait([future])

diracx-db/src/diracx/db/sql/job/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class JobDB(BaseSQLDB):
5050
}
5151

5252
# TODO: this is copied from the DIRAC JobDB
53-
# but is overwriten in LHCbDIRAC, so we need
53+
# but is overwritten in LHCbDIRAC, so we need
5454
# to find a way to make it dynamic
5555
jdl_2_db_parameters = ["JobName", "JobType", "JobGroup"]
5656

0 commit comments

Comments
 (0)