Skip to content

Commit

Permalink
ci: update tool config
Browse files Browse the repository at this point in the history
update pre-commit repo versions and switch black to ruff
  • Loading branch information
alycejenni committed Oct 29, 2024
1 parent a42e58a commit 96eaa0e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
19 changes: 9 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: /(vendor|dist)/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: detect-private-key
Expand All @@ -11,23 +11,22 @@ repos:
exclude: ^tests/helpers/
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.37.0
rev: v3.30.0
hooks:
- id: commitizen
additional_dependencies: ["cz-nhm"]
- repo: https://github.com/psf/black
rev: 22.10.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: black
- id: ruff
args: [ '--fix', '--select', 'I', '--select', 'F401' ]
- id: ruff-format
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.0
rev: eb1df34
hooks:
- id: docformatter
# these can't be pulled directly from the config atm, not sure why
args: ["-i", "--wrap-summaries=88", "--wrap-descriptions=88",
"--pre-summary-newline", "--make-summary-multi-line"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [ javascript, vue, less, sass, scss, css ]
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
]
dependencies = [
"python-ldap==3.4.3",
"ckantools>=0.3.0"
"ckantools>=0.4.1"
]

[project.optional-dependencies]
Expand Down Expand Up @@ -65,9 +65,8 @@ version_files = [
"CITATION.cff:^version"
]

[tool.black]
line-length = 88
skip_string_normalization = true
[tool.ruff.format]
quote-style = "single"

[tool.pylint]
max-line-length = 88
Expand Down

0 comments on commit 96eaa0e

Please sign in to comment.