Skip to content

Commit

Permalink
pcf: update tool configs
Browse files Browse the repository at this point in the history
Signed-off-by: Simon A. F. Lund <[email protected]>
  • Loading branch information
safl committed Oct 29, 2024
1 parent dc3d78a commit 4813cc5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
35 changes: 18 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ default_language_version:
python: python3

repos:
# yamlfmt only works on valid YAML files, thus adding this linter
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
name: YAML-format-check
types: [file]
files: \.(yaml|yml)$

# Both the yace-models as well as the github-action yaml gets formatted
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
Expand All @@ -25,17 +15,28 @@ repos:
- '--width=120'
- '--preserve-quotes'
types: [file]
files: \.(yaml|yml)$
files: \.(yaml|yml|config|workflow)$

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.10.0
hooks:
- id: black
name: Python-style-black
name: Python-format-black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.283
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: ruff
name: Python-check-ruff
args: ["--fix"]
name: Python-lint-ruff
args: [--fix]

#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.12.0
# hooks:
# - id: mypy
# name: Python-lint-mypy
# exclude: "docs/source/conf.py"
# additional_dependencies:
# - types-paramiko
# - types-PyYAML
# - types-requests
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ where = ["src"]


[tool.ruff]
select = ["E", "F", "I"]
per-file-ignores = { "src/yace/idl/datatypes.py" = ["E742"] }
lint.select = ["E", "F", "I"]
lint.per-file-ignores = { "src/yace/idl/datatypes.py" = ["E742"] }

0 comments on commit 4813cc5

Please sign in to comment.