Skip to content

Commit 1d1a73a

Browse files
committed
fix: spelling
1 parent e8d2b73 commit 1d1a73a

24 files changed

Lines changed: 35 additions & 36 deletions

File tree

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/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

diracx-db/src/diracx/db/sql/job_logging/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def process_result_value(self, value, dialect):
4444
"""
4545
if value is None:
4646
return None
47-
# Carefully convert from Decimal to datetime to avoid loosing precision
47+
# Carefully convert from Decimal to datetime to avoid losing precision
4848
value += self.MAGIC_EPOC_NUMBER
4949
value_int = int(value)
5050
result = datetime.fromtimestamp(value_int, tz=UTC)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async def assign_sandbox_to_jobs(
128128
sb_type: SandboxType,
129129
se_name: str,
130130
) -> None:
131-
"""Mapp sandbox and jobs."""
131+
"""Map sandbox and jobs."""
132132
for job_id in jobs_ids:
133133
# Define the entity id as 'Entity:entity_id' due to the DB definition:
134134
entity_id = self.jobid_to_entity_id(job_id)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def get_task_queue_owners_by_group(self, group: str) -> dict[str, int]:
5656
)
5757
rows = await self.conn.execute(stmt)
5858
# Get owners in this group and the amount of times they appear
59-
# TODO: I guess the rows are already a list of tupes
59+
# TODO: I guess the rows are already a list of tuples
6060
# maybe refactor
6161
return {r[0]: r[1] for r in rows if r}
6262

@@ -108,7 +108,7 @@ async def set_priorities_for_entity(
108108
tq_ids: list[int],
109109
priority: float,
110110
):
111-
"""Set the priority for a user/userGroup combo given a splitted share."""
111+
"""Set the priority for a user/userGroup combo given a split share."""
112112
update_stmt = (
113113
update(TaskQueues)
114114
.where(TaskQueues.TQId.in_(tq_ids))

diracx-db/src/diracx/db/sql/utils/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BaseSQLDB(metaclass=ABCMeta):
5151
of the same database. To list the available implementations use
5252
`BaseSQLDB.available_implementations(db_name)`. The first entry in this list
5353
will be the preferred implementation and it can be initialized by calling
54-
it's `__init__` function with a URL perviously obtained from
54+
it's `__init__` function with a URL previously obtained from
5555
`BaseSQLDB.available_urls`.
5656
5757
To control the lifetime of the SQLAlchemy engine used for connecting to the

0 commit comments

Comments
 (0)