Skip to content

Commit 3614eeb

Browse files
committed
ci: disabling pyproject validation for the time being
The JSON schema against which the `tools.ruff.lint` section is validated doesn't appear to exist yet and throws errors. I'm not the only person to have encountered this problem see [here](abravalheri/validate-pyproject#180). For now I'm disabling the check so that `pre-commit` passes. Will reinstate once fixed.
1 parent 6ddcd38 commit 3614eeb

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

Diff for: .pre-commit-config.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ repos:
9191
files: isoslam
9292
args: []
9393

94-
- repo: https://github.com/abravalheri/validate-pyproject
95-
rev: v0.23
96-
hooks:
97-
- id: validate-pyproject
98-
additional_dependencies: ["validate-pyproject-schema-store[all]"]
94+
# @ns-rse (2024-11-27) Currently fails due to `fastjsonschema` not covering `tool.ruff.lint` see
95+
# https://github.com/abravalheri/validate-pyproject/issues/180
96+
# Disabling for now
97+
# - repo: https://github.com/abravalheri/validate-pyproject
98+
# rev: v0.23
99+
# hooks:
100+
# - id: validate-pyproject
101+
# additional_dependencies: ["validate-pyproject-schema-store[all]"]
99102

100103
- repo: local
101104
hooks:

Diff for: pyproject.toml

+5-9
Original file line numberDiff line numberDiff line change
@@ -179,18 +179,16 @@ line-length = 120
179179
lint.select = [
180180
"A", # flake8-builtins
181181
"B", # flake8-bugbear
182-
"C", #
183182
"D", # pydocstyle
184183
"E", # pycodestyle error
185-
"F",
184+
"F", # pyflakes
186185
"I", # isort
187186
"NPY", # numpy
188187
"PT", # flake8-pytest-style
189188
"PTH", # flake8-use-pathlib
190-
"R",
189+
"R", # refactor (pylint)
191190
"S", #flake8-bandit
192191
"W", # pycodestyle warning
193-
"U",
194192
"UP", # pyupgrade
195193
]
196194
lint.ignore = [
@@ -203,19 +201,17 @@ lint.ignore = [
203201
lint.fixable = [
204202
"A", # flake8-builtins
205203
"B", # flake8-bugbear
206-
"C", #
207204
"D", # pydocstyle
208205
"E", # pycodestyle error
209-
"F",
206+
"F", # pyflakes
210207
"I", # isort
211208
"NPY", # numpy
212209
"PT", # flake8-pytest-style
213210
"PTH", # flake8-use-pathlib
214-
"R",
211+
"R", # refactor (pylint)
215212
"S", #flake8-bandit
216213
"W", # pycodestyle warning
217-
"U",
218-
"UP", # pyupgrade
214+
"UP", # pyupgrade
219215
]
220216
lint.unfixable = []
221217

0 commit comments

Comments
 (0)