Skip to content

Commit

Permalink
Merge pull request #76 from sudlab/ns-rse/54-validate-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-rse authored Nov 27, 2024
2 parents 6ddcd38 + 3614eeb commit 1627ee7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
13 changes: 8 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ repos:
files: isoslam
args: []

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

- repo: local
hooks:
Expand Down
14 changes: 5 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,16 @@ line-length = 120
lint.select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C", #
"D", # pydocstyle
"E", # pycodestyle error
"F",
"F", # pyflakes
"I", # isort
"NPY", # numpy
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"R",
"R", # refactor (pylint)
"S", #flake8-bandit
"W", # pycodestyle warning
"U",
"UP", # pyupgrade
]
lint.ignore = [
Expand All @@ -203,19 +201,17 @@ lint.ignore = [
lint.fixable = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C", #
"D", # pydocstyle
"E", # pycodestyle error
"F",
"F", # pyflakes
"I", # isort
"NPY", # numpy
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"R",
"R", # refactor (pylint)
"S", #flake8-bandit
"W", # pycodestyle warning
"U",
"UP", # pyupgrade
"UP", # pyupgrade
]
lint.unfixable = []

Expand Down

0 comments on commit 1627ee7

Please sign in to comment.