Skip to content

Commit c481f85

Browse files
committed
Added codespell in pre-commit and fixed files to compliance
1 parent 3bf56ab commit c481f85

30 files changed

Lines changed: 110 additions & 55 deletions

.codespell/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2017 Fermi Research Alliance, LLC
3+
SPDX-License-Identifier: Apache-2.0
4+
-->
5+
6+
# Codespell Configuration
7+
8+
These files are documented at <https://docs.openverse.org/meta/codespell.html>.

.codespell/ignore_lines.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
;; SPDX-FileCopyrightText = "2017 Fermi Research Alliance, LLC"
2+
;; SPDX-License-Identifier = "Apache-2.0"

.codespell/ignore_words.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
;; SPDX-FileCopyrightText = "2017 Fermi Research Alliance, LLC"
2+
;; SPDX-License-Identifier = "Apache-2.0"
3+
;; DE/DEM words
4+
FOM
5+
fom
6+
;; GWMS and HTCondor words
7+
glidein
8+
Glidein
9+
glideinwms
10+
GlideinWMS
11+
apptainer
12+
Apptainer
13+
HTCondor
14+
startd
15+
schedd
16+
collector
17+
negotiator
18+
classad
19+
classads
20+
ClassAd
21+
ClassAdss
22+
astroid
23+
;;

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
python-version:
22-
- "3.8"
2322
- "3.9"
23+
- "3.11"
2424

2525
name: Python ${{ matrix.python-version }} unit tests
2626
steps:

.github/workflows/linters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
run: |
6868
set -x
6969
python3 -m pip install --upgrade pip
70-
python3 -m pip install --upgrade wheel
70+
python3 -m pip install --upgrade wheel setuptools setuptools-scm
7171
python3 -m pip install -r ${{ github.workspace }}/glideinwms/requirements.txt
7272
7373
- name: Install dependencies for DE Framework

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ repos:
5151
- id: pyupgrade
5252
args:
5353
- "--py36-plus"
54+
- repo: https://github.com/codespell-project/codespell
55+
rev: v2.2.4
56+
hooks:
57+
- id: codespell
58+
args: [
59+
# codespell --toml pyproject.toml .
60+
# Pass skip configuration as command line arguments rather than in the
61+
# config file because neither cfg nor TOML support splitting this argument
62+
# across multiple lines.
63+
# Globs must match the Python `glob` module's format:
64+
# https://docs.python.org/3/library/glob.html#module-glob
65+
"-S",
66+
".codespell/ignore_words.txt",
67+
# Write changes in place
68+
"-w",
69+
]
70+
additional_dependencies:
71+
- tomli
5472
- repo: "https://github.com/fsfe/reuse-tool"
5573
rev: v0.14.0
5674
hooks:

.reuse/dep5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Files: src/*.jsonnet src/*/readme src/*.conf src/*.fixture src/*.csv src/*/AWS/s
1515
Copyright: 2017 Fermi Research Alliance, LLC
1616
License: Apache-2.0
1717

18-
Files: .codecov.yml .coveragerc .editorconfig .gitignore .lgtm.yaml .pep8speaks.yml .pre-commit-config.yaml .pylintrc _config.yml pyproject.toml uv.lock
18+
Files: .codecov.yml .codespell/ignore_lines.txt .codespell/ignore_words.txt .coveragerc .editorconfig .gitignore .lgtm.yaml .pep8speaks.yml .pre-commit-config.yaml .pylintrc _config.yml pyproject.toml uv.lock
1919
Copyright: 2017 Fermi Research Alliance, LLC
2020
License: Apache-2.0
2121

dashboards/Runtimes-of-Transform-Logic-Engine-Publisher-Source.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@
480480
"refId": "A"
481481
}
482482
],
483-
"title": "Transform Averge GlideinRequestManifests",
483+
"title": "Transform Average GlideinRequestManifests",
484484
"type": "timeseries"
485485
},
486486
{

doc/source/release_notes/release_notes_1.7.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Full list of commits since version 1.7.3
4949
Release 1.7.3
5050
-------------
5151

52-
Enable token+proxy hybrid configuration, to send a proxy in a ddition to tokens to support OSG Gratia probes.
52+
Enable token+proxy hybrid configuration, to send a proxy in addition to tokens to support OSG Gratia probes.
5353

5454
Full list of commits since version 1.7.2
5555
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -108,7 +108,7 @@ This release features:
108108
The RPM package was renamed from decisionengine-standard-library to decisionengine_modules. rpm/yum updates from the old RPM will work correctly.
109109

110110
.. note::
111-
The "channel_name" key in the Source Proxy config dictionaries needs to be changed to "source_channel". "channel_name" is now being used to describe the name of the channel itself, not the name of the channel the Source Proxy is gettting information from.
111+
The "channel_name" key in the Source Proxy config dictionaries needs to be changed to "source_channel". "channel_name" is now being used to describe the name of the channel itself, not the name of the channel the Source Proxy is getting information from.
112112

113113

114114
Issues fixed in this release
@@ -140,7 +140,7 @@ Full list of commits since version 1.6.0
140140

141141
`77a79ad <https://github.com/HEPCloud/decisionengine_modules/commit/77a79adb0c6b6a81441f77cb0d1b62fe1a614a75>`_: Use latest version of bill calc
142142

143-
`385266c <https://github.com/HEPCloud/decisionengine_modules/commit/385266c417c18eba3c8aedecc6f6a4e6aca6b92f>`_: Fix requiements to match our usage
143+
`385266c <https://github.com/HEPCloud/decisionengine_modules/commit/385266c417c18eba3c8aedecc6f6a4e6aca6b92f>`_: Fix requirements to match our usage
144144

145145
`56e2d9e <https://github.com/HEPCloud/decisionengine_modules/commit/56e2d9e288295a5d6d0987b9250acc644a54b809>`_: Add config for lgtm
146146

@@ -188,7 +188,7 @@ Full list of commits since version 1.6.0
188188

189189
`5435707 <https://github.com/HEPCloud/decisionengine_modules/commit/54357079948adf0e3f68618efe6bb76a3a0af651>`_: Check for configuration error.
190190

191-
`4f7fc04 <https://github.com/HEPCloud/decisionengine_modules/commit/4f7fc044f1761cbf915d405e235a1d7cc9b9812c>`_: Accomodate breaking changes introduced by the framework.
191+
`4f7fc04 <https://github.com/HEPCloud/decisionengine_modules/commit/4f7fc044f1761cbf915d405e235a1d7cc9b9812c>`_: Accommodate breaking changes introduced by the framework.
192192

193193
`a27f92a <https://github.com/HEPCloud/decisionengine_modules/commit/a27f92afc1f5ef2b3d16c03cc311a49593a168cf>`_: Added 1.6.2 release notes, from branch 1.6
194194

doc/source/release_notes/release_notes_2.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ chanism. This allows to trigger this action through a GitHub API or directly thr
177177

178178
`9044b64 <https://github.com/HEPCloud/decisionengine_modules/commit/9044b64d3dc813e9eabc36d04c125392f2efecb9>`_: Add token authentication to the glideinwms module
179179

180-
`97ca32a <https://github.com/HEPCloud/decisionengine_modules/commit/97ca32ad84d26b9059f6eda8988c8ddd80a0466a>`_: Modified pre-commit bot suggestions. Avoid pyupgrade that requires pytohn 3.7
180+
`97ca32a <https://github.com/HEPCloud/decisionengine_modules/commit/97ca32ad84d26b9059f6eda8988c8ddd80a0466a>`_: Modified pre-commit bot suggestions. Avoid pyupgrade that requires python 3.7
181181

182182
`95a7d7b <https://github.com/HEPCloud/decisionengine_modules/commit/95a7d7b8835776da4ed16a3a6268da96cabe74e6>`_: Test the arguments used to call publish_to_htcondor.
183183

@@ -219,7 +219,7 @@ chanism. This allows to trigger this action through a GitHub API or directly thr
219219

220220
`d57ac6e <https://github.com/HEPCloud/decisionengine_modules/commit/d57ac6ee7376191f482fd0bebe14f013b8e16e79>`_: Set Apache 2.0 license and added REUSE compliance
221221

222-
`cf43119 <https://github.com/HEPCloud/decisionengine_modules/commit/cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71>`_: Set fail-fast to false to allow py3.6 tests to complete also when higher version fail. Temporarly downgraded from py3.10 to py3.9 because the condor dependency is not available yet for py3.10.
222+
`cf43119 <https://github.com/HEPCloud/decisionengine_modules/commit/cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71>`_: Set fail-fast to false to allow py3.6 tests to complete also when higher version fail. Temporarily downgraded from py3.10 to py3.9 because the condor dependency is not available yet for py3.10.
223223

224224
`e2707e5 <https://github.com/HEPCloud/decisionengine_modules/commit/e2707e589142d40afdc5716fd4c4d6c9a38bc64e>`_: Ignoring E203, whitespace after ':', since black is adding the whitespace
225225

0 commit comments

Comments
 (0)