module-qc-tools 2.2.1rc0__tar.gz → 2.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/.gitlab-ci.yml +87 -27
  2. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/.pre-commit-config.yaml +45 -37
  3. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/LICENSE +1 -1
  4. {module_qc_tools-2.2.1rc0/Measurements/ADC_CALIBRATION/2023-11-27_205127 → module_qc_tools-2.2.3/Measurements/ADC_CALIBRATION/2024-04-11_144359}/20UPGXM1234567.json +106 -406
  5. {module_qc_tools-2.2.1rc0/Measurements/ANALOG_READBACK/2023-11-27_205133 → module_qc_tools-2.2.3/Measurements/ANALOG_READBACK/2024-04-11_144351}/20UPGXM1234567.json +400 -388
  6. {module_qc_tools-2.2.1rc0/Measurements/DATA_TRANSMISSION/2023-11-27_205129 → module_qc_tools-2.2.3/Measurements/DATA_TRANSMISSION/2024-04-11_144358}/20UPGXM1234567.json +56 -56
  7. {module_qc_tools-2.2.1rc0/Measurements/INJECTION_CAPACITANCE/2023-11-27_205127 → module_qc_tools-2.2.3/Measurements/INJECTION_CAPACITANCE/2024-04-11_144353}/20UPGXM1234567.json +46 -42
  8. {module_qc_tools-2.2.1rc0/Measurements/IV_MEASURE/2023-11-27_205128 → module_qc_tools-2.2.3/Measurements/IV_MEASURE/2024-04-11_144408}/20UPGXM1234567.json +85 -85
  9. {module_qc_tools-2.2.1rc0/Measurements/LP_MODE/2023-11-27_205128 → module_qc_tools-2.2.3/Measurements/LP_MODE/2024-04-11_144406}/20UPGXM1234567.json +16 -12
  10. {module_qc_tools-2.2.1rc0/Measurements/OVERVOLTAGE_PROTECTION/2023-11-27_205157 → module_qc_tools-2.2.3/Measurements/OVERVOLTAGE_PROTECTION/2024-04-11_144333}/20UPGXM1234567.json +20 -16
  11. {module_qc_tools-2.2.1rc0/Measurements/SLDO/2023-11-27_205125 → module_qc_tools-2.2.3/Measurements/SLDO/2024-04-11_144328}/20UPGXM1234567.json +448 -444
  12. {module_qc_tools-2.2.1rc0/Measurements/UNDERSHUNT_PROTECTION/2023-11-27_205153 → module_qc_tools-2.2.3/Measurements/UNDERSHUNT_PROTECTION/2024-04-11_144338}/20UPGXM1234567.json +20 -16
  13. {module_qc_tools-2.2.1rc0/Measurements/VCAL_CALIBRATION/2023-11-27_205149 → module_qc_tools-2.2.3/Measurements/VCAL_CALIBRATION/2024-04-11_144330}/20UPGXM1234567.json +249 -1145
  14. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/PKG-INFO +23 -15
  15. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/README.md +19 -11
  16. module_qc_tools-2.2.3/docs/.gitkeep +0 -0
  17. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/pyproject.toml +43 -15
  18. module_qc_tools-2.2.3/src/module_qc_tools/_version.py +16 -0
  19. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/ADC_CALIBRATION.py +73 -31
  20. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/ANALOG_READBACK.py +262 -158
  21. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/DATA_TRANSMISSION.py +25 -11
  22. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/INJECTION_CAPACITANCE.py +92 -47
  23. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/IV_MEASURE.py +24 -17
  24. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/LP_MODE.py +55 -31
  25. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/OVERVOLTAGE_PROTECTION.py +55 -32
  26. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/SLDO.py +41 -30
  27. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/UNDERSHUNT_PROTECTION.py +60 -26
  28. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/VCAL_CALIBRATION.py +70 -61
  29. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/globals.py +5 -1
  30. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/hardware_emulator.py +55 -30
  31. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/upload_localdb.py +5 -4
  32. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/configs/emulator_merged_vmux.json +20 -13
  33. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/configs/example_merged_vmux.json +20 -13
  34. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/configs/example_separate_vmux.json +20 -13
  35. module_qc_tools-2.2.3/src/module_qc_tools/data/emulator/configs/controller/specCfg-rd53b.json +25 -0
  36. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/config.json +8 -2
  37. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/utils/hardware_control_base.py +19 -5
  38. module_qc_tools-2.2.3/src/module_qc_tools/utils/misc.py +200 -0
  39. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/utils/multimeter.py +2 -2
  40. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/utils/ntc.py +2 -2
  41. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/utils/power_supply.py +57 -14
  42. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/utils/yarr.py +132 -84
  43. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/tbump.toml +2 -2
  44. module_qc_tools-2.2.1rc0/src/module_qc_tools/_version.py +0 -4
  45. module_qc_tools-2.2.1rc0/src/module_qc_tools/utils/misc.py +0 -59
  46. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/.gitignore +0 -0
  47. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/.gitmodules +0 -0
  48. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/emulator/README.md +0 -0
  49. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/__init__.py +0 -0
  50. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/__init__.py +0 -0
  51. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/__main__.py +0 -0
  52. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/cli/main.py +0 -0
  53. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/emulator/configs/connectivity/20UPGXM1234567_Lx_dummy.json +0 -0
  54. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/emulator/configs/connectivity/chip/dummy_chip1.json +0 -0
  55. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/emulator/configs/connectivity/chip/dummy_chip2.json +0 -0
  56. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/emulator/configs/connectivity/chip/dummy_chip3.json +0 -0
  57. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/emulator/configs/connectivity/chip/dummy_chip4.json +0 -0
  58. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/emulator/module_state_template.json +0 -0
  59. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/ADC_CALIBRATION.json +0 -0
  60. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/ANALOG_READBACK.json +0 -0
  61. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/DATA_TRANSMISSION.json +0 -0
  62. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/INJECTION_CAPACITANCE.json +0 -0
  63. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/IV_MEASURE.json +0 -0
  64. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/LP_MODE.json +0 -0
  65. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/OVERVOLTAGE_PROTECTION.json +0 -0
  66. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/SLDO.json +0 -0
  67. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/UNDERSHUNT_PROTECTION.json +0 -0
  68. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/VCAL_CALIBRATION.json +0 -0
  69. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/data/schema/common.json +0 -0
  70. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/src/module_qc_tools/utils/__init__.py +0 -0
  71. {module_qc_tools-2.2.1rc0 → module_qc_tools-2.2.3}/tests/test_package.py +0 -0
@@ -1,4 +1,5 @@
1
1
  stages:
2
+ - autoupdate
2
3
  - check
3
4
  - test
4
5
  - build
@@ -13,8 +14,9 @@ cache:
13
14
  paths:
14
15
  - .cache/pip
15
16
  - .cache/pre-commit
17
+ - venv/
16
18
 
17
- image: python:3.7-buster
19
+ image: python:3.11-buster
18
20
  before_script:
19
21
  # want to set up a virtualenv to cache
20
22
  - apt-get install -y --no-install-recommends git
@@ -28,22 +30,69 @@ before_script:
28
30
  " | git credential approve
29
31
  - python -m venv venv
30
32
  - source venv/bin/activate
31
- - python -m pip install --upgrade pip
32
33
  - python -m pip install -U pip pipx
33
34
  - python -m pipx ensurepath
34
- - python -m pip freeze
35
- - python -m pip install check-jsonschema
35
+ - python -m pip freeze --local
36
36
 
37
- lint:
37
+ # NB: repo-review requires python>=3.10
38
+ review:
38
39
  image: python:3.10-buster
39
40
  stage: check
41
+ script:
42
+ - pipx run 'sp-repo-review[cli]' .
43
+
44
+ lint:
45
+ stage: check
46
+ rules:
47
+ - if: $CI_PIPELINE_SOURCE == "push"
48
+ script:
49
+ - pipx run hatch run lint
50
+
51
+ pre-commit:
52
+ stage: check
53
+ variables:
54
+ PRE_COMMIT_HOME: "$CI_PROJECT_DIR/.cache/pre-commit"
55
+ rules:
56
+ - if: $CI_PIPELINE_SOURCE == "push"
57
+ script:
58
+ - pipx run pre-commit run --hook-stage manual --all-files
59
+ cache:
60
+ key:
61
+ files:
62
+ - .pre-commit-config.yaml
63
+ paths:
64
+ - .cache/pre-commit
65
+
66
+ pre-commit-autoupdate:
67
+ stage: autoupdate
68
+ rules:
69
+ - if: $CI_PIPELINE_SOURCE == "schedule"
70
+ when: always
71
+ - if:
72
+ $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
73
+ when: manual
74
+ # manual jobs need allow_failure? https://gitlab.com/gitlab-org/gitlab/-/issues/233876
75
+ allow_failure: true
40
76
  script:
41
77
  - python -m pip install pre-commit
42
- - pre-commit run --all-files
78
+ - python -m pip freeze --local
79
+ - ci/pre-commit-update.sh
43
80
 
44
- SLDO:
81
+ cache:
82
+ key:
83
+ files:
84
+ - .pre-commit-config.yaml
85
+ paths:
86
+ - .cache/pre-commit
87
+
88
+ .test:
89
+ image: python:3.7-buster
45
90
  stage: test
91
+
92
+ SLDO:
93
+ extends: .test
46
94
  script:
95
+ - python -m pip install check-jsonschema
47
96
  - python3 -m pip install .
48
97
  - echo "Running SLDO with toy emulator..."
49
98
  - measurement-SLDO -c $(module-qc-tools
@@ -58,8 +107,9 @@ SLDO:
58
107
  expire_in: 1 day
59
108
 
60
109
  VCAL_CALIBRATION:
61
- stage: test
110
+ extends: .test
62
111
  script:
112
+ - python -m pip install check-jsonschema
63
113
  - python3 -m pip install .
64
114
  - echo "Running VCAL_CALIBRATION with the toy emulator..."
65
115
  - measurement-VCAL-CALIBRATION -c $(module-qc-tools
@@ -76,8 +126,9 @@ VCAL_CALIBRATION:
76
126
  expire_in: 1 day
77
127
 
78
128
  ANALOG_READBACK:
79
- stage: test
129
+ extends: .test
80
130
  script:
131
+ - python -m pip install check-jsonschema
81
132
  - python3 -m pip install .
82
133
  - echo "Running ANALOG_READBACK with toy emulator..."
83
134
  - measurement-ANALOG-READBACK -c $(module-qc-tools
@@ -94,8 +145,9 @@ ANALOG_READBACK:
94
145
  expire_in: 1 day
95
146
 
96
147
  ADC_CALIBRATION:
97
- stage: test
148
+ extends: .test
98
149
  script:
150
+ - python -m pip install check-jsonschema
99
151
  - python3 -m pip install . --no-cache-dir
100
152
  - echo "Running ADC_CALIBRATION with the toy emulator..."
101
153
  - measurement-ADC-CALIBRATION -c $(module-qc-tools
@@ -112,8 +164,9 @@ ADC_CALIBRATION:
112
164
  expire_in: 1 day
113
165
 
114
166
  INJECTION_CAPACITANCE:
115
- stage: test
167
+ extends: .test
116
168
  script:
169
+ - python -m pip install check-jsonschema
117
170
  - python3 -m pip install . --no-cache-dir
118
171
  - echo "Running INJECTION-CAPACITANCE with the toy emulator..."
119
172
  - measurement-INJECTION-CAPACITANCE -c $(module-qc-tools
@@ -130,8 +183,9 @@ INJECTION_CAPACITANCE:
130
183
  expire_in: 1 day
131
184
 
132
185
  LP_MODE:
133
- stage: test
186
+ extends: .test
134
187
  script:
188
+ - python -m pip install check-jsonschema
135
189
  - python3 -m pip install .
136
190
  - echo "Running LP_MODE with toy emulator..."
137
191
  - measurement-LP-MODE -c $(module-qc-tools
@@ -146,8 +200,9 @@ LP_MODE:
146
200
  expire_in: 1 day
147
201
 
148
202
  OVERVOLTAGE_PROTECTION:
149
- stage: test
203
+ extends: .test
150
204
  script:
205
+ - python -m pip install check-jsonschema
151
206
  - python3 -m pip install .
152
207
  - echo "Running OVERVOLTAGE_PROTECTION with toy emulator..."
153
208
  - measurement-OVERVOLTAGE-PROTECTION -c $(module-qc-tools
@@ -164,12 +219,13 @@ OVERVOLTAGE_PROTECTION:
164
219
  expire_in: 1 day
165
220
 
166
221
  UNDERSHUNT_PROTECTION:
167
- stage: test
222
+ extends: .test
168
223
  script:
224
+ - python -m pip install check-jsonschema
169
225
  - python3 -m pip install .
170
226
  - echo "Running UNDERSHUNT_PROTECTION with toy emulator..."
171
227
  - measurement-UNDERSHUNT-PROTECTION -c $(module-qc-tools
172
- --prefix)/configs/emulator_merged_vmux.json -o ./
228
+ --prefix)/configs/emulator_merged_vmux.json -o ./ --site TEST
173
229
  - for file in Measurements/UNDERSHUNT_PROTECTION/*/*.json; do echo $file;
174
230
  jsonschema --instance $file $(module-qc-tools
175
231
  --prefix)/schema/common.json; done
@@ -182,8 +238,9 @@ UNDERSHUNT_PROTECTION:
182
238
  expire_in: 1 day
183
239
 
184
240
  IV_MEASURE:
185
- stage: test
241
+ extends: .test
186
242
  script:
243
+ - python -m pip install check-jsonschema
187
244
  - python3 -m pip install .
188
245
  - echo "Running IV-MEASURE with toy emulator..."
189
246
  - measurement-IV-MEASURE -c $(module-qc-tools
@@ -200,8 +257,9 @@ IV_MEASURE:
200
257
  expire_in: 1 day
201
258
 
202
259
  DATA_TRANSMISSION:
203
- stage: test
260
+ extends: .test
204
261
  script:
262
+ - python -m pip install check-jsonschema
205
263
  - python3 -m pip install .
206
264
  - echo "Running DATA_TRANSMISSION with toy emulator..."
207
265
  - measurement-DATA-TRANSMISSION -c $(module-qc-tools
@@ -219,32 +277,34 @@ DATA_TRANSMISSION:
219
277
 
220
278
  package:
221
279
  stage: build
222
- variables:
223
- GIT_STRATEGY: clone
280
+ rules:
281
+ - if: $CI_PIPELINE_SOURCE == "push"
224
282
  script:
225
283
  - pipx run hatch run build-check
226
284
  artifacts:
227
285
  paths:
228
286
  - dist/
287
+ expire_in: 1 day
229
288
 
230
- .deploy:
289
+ .deploy_package:
231
290
  stage: deploy
232
291
  dependencies:
233
292
  - package
234
293
  script:
235
294
  - pipx run hatch run upload
236
295
 
237
- deploy_gitlab:
238
- extends: .deploy
296
+ deploy_package_gitlab:
297
+ extends: .deploy_package
239
298
  rules:
240
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
299
+ - if:
300
+ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
241
301
  variables:
242
- TWINE_PASSWORD: "${CI_JOB_TOKEN}"
243
- TWINE_USERNAME: "gitlab-ci-token"
244
302
  TWINE_REPOSITORY_URL: "https://gitlab.cern.ch/api/v4/projects/${CI_PROJECT_ID}/packages/pypi"
303
+ TWINE_USERNAME: "gitlab-ci-token"
304
+ TWINE_PASSWORD: "${CI_JOB_TOKEN}"
245
305
 
246
- deploy_production:
247
- extends: .deploy
306
+ deploy_package_pypi:
307
+ extends: .deploy_package
248
308
  only:
249
309
  - tags
250
310
  variables:
@@ -3,38 +3,47 @@ ci:
3
3
  autofix_commit_msg: "style: pre-commit fixes"
4
4
 
5
5
  repos:
6
- - repo: https://github.com/psf/black
7
- rev: "23.3.0"
8
- hooks:
9
- - id: black-jupyter
10
-
11
6
  - repo: https://github.com/pre-commit/pre-commit-hooks
12
- rev: v4.4.0
7
+ rev: v4.5.0
13
8
  hooks:
14
- - id: check-json
15
- - id: trailing-whitespace
16
9
  # broken in old git from 2013
17
10
  # - id: check-added-large-files
18
11
  - id: check-case-conflict
19
12
  - id: check-merge-conflict
20
- - id: check-case-conflict
21
- - id: debug-statements
22
- - id: mixed-line-ending
23
13
  - id: check-symlinks
24
- - id: check-toml
25
14
  - id: check-yaml
26
- - id: requirements-txt-fixer
15
+ - id: debug-statements
27
16
  - id: end-of-file-fixer
28
17
  # exclude generated files
29
18
  exclude: ^outputs/|\.dtd$|\.json$|\.xml$
19
+
20
+ - id: mixed-line-ending
30
21
  - id: name-tests-test
31
22
  args: ["--pytest-test-first"]
23
+ - id: requirements-txt-fixer
24
+ - id: trailing-whitespace
25
+ # additional not in scientific-python/cookie
26
+ - id: check-json
27
+ - id: check-toml
32
28
 
33
29
  - repo: https://github.com/pre-commit/pre-commit-hooks
34
- rev: v4.0.1
30
+ rev: v4.0.1 # keep at v4.0.1
35
31
  hooks:
36
32
  - id: check-added-large-files
37
33
 
34
+ - repo: https://github.com/adamchainz/blacken-docs
35
+ rev: 1.16.0
36
+ hooks:
37
+ - id: blacken-docs
38
+ additional_dependencies: [black==22.3.0]
39
+
40
+ - repo: https://github.com/astral-sh/ruff-pre-commit
41
+ rev: v0.2.0
42
+ hooks:
43
+ - id: ruff
44
+ args: ["--fix", "--show-fixes"]
45
+ - id: ruff-format
46
+
38
47
  - repo: https://github.com/pre-commit/pygrep-hooks
39
48
  rev: "v1.10.0"
40
49
  hooks:
@@ -42,37 +51,20 @@ repos:
42
51
  - id: rst-directive-colons
43
52
  - id: rst-inline-touching-normal
44
53
 
45
- - repo: https://github.com/codespell-project/codespell
46
- rev: v2.2.4
47
- hooks:
48
- - id: codespell
49
- files: ^.*\.(py|md|rst)$
50
- args: ["-w", "-L", "hist,gaus"]
51
-
52
54
  - repo: https://github.com/pre-commit/mirrors-prettier
53
- rev: "v3.0.0-alpha.3"
55
+ rev: "v4.0.0-alpha.8"
54
56
  hooks:
55
57
  - id: prettier
56
58
  types_or: [yaml, markdown, html, css, scss, javascript] #, json]
57
59
  args: [--prose-wrap=always]
58
60
  language_version: 16.14.2
59
61
 
60
- - repo: https://github.com/asottile/blacken-docs
61
- rev: 1.13.0
62
- hooks:
63
- - id: blacken-docs
64
- additional_dependencies: [black==22.3.0]
65
-
66
- - repo: https://github.com/charliermarsh/ruff-pre-commit
67
- rev: v0.0.261
68
- hooks:
69
- - id: ruff
70
- args: ["--fix", "--show-fixes"]
71
-
72
- - repo: https://github.com/shellcheck-py/shellcheck-py
73
- rev: v0.9.0.2
62
+ - repo: https://github.com/codespell-project/codespell
63
+ rev: v2.2.6
74
64
  hooks:
75
- - id: shellcheck
65
+ - id: codespell
66
+ files: ^.*\.(py|md|rst)$
67
+ args: ["-w", "-L", "hist,gaus"]
76
68
 
77
69
  - repo: local
78
70
  hooks:
@@ -81,3 +73,19 @@ repos:
81
73
  language: pygrep
82
74
  entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
83
75
  exclude: .pre-commit-config.yaml
76
+ - id: disallow-bad-permalinks
77
+ name: Disallow _ in permalinks
78
+ language: pygrep
79
+ entry: "^permalink:.*_.*"
80
+
81
+ - repo: https://github.com/shellcheck-py/shellcheck-py
82
+ rev: v0.9.0.6
83
+ hooks:
84
+ - id: shellcheck
85
+
86
+ # requires python>=3.10 to run
87
+ #- repo: https://github.com/scientific-python/cookie
88
+ # rev: 2024.01.24
89
+ # hooks:
90
+ # - id: sp-repo-review
91
+ # additional_dependencies: ["repo-review[cli]"]
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 The Python Packaging Authority
1
+ Copyright (c) 2018 ATLAS ITk Pixel Modules
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal