-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update pre-commit hooks and pyproject ruff config
- Loading branch information
1 parent
dedd8d8
commit 5688c41
Showing
2 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
repos: | ||
# Versioning: Commit messages & changelog | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.13.0 | ||
rev: v3.28.0 | ||
hooks: | ||
- id: commitizen | ||
stages: [commit-msg] | ||
|
||
# Autoformat: Python code | ||
- repo: https://github.com/psf/black | ||
rev: 23.11.0 | ||
hooks: | ||
- id: black | ||
|
||
# Lint / autoformat: Python code | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: "v0.1.6" | ||
rev: "v0.5.6" | ||
hooks: | ||
# Run the linter | ||
- id: ruff | ||
args: [--exit-non-zero-on-fix] | ||
args: [--fix, --exit-non-zero-on-fix] | ||
# Run the formatter | ||
- id: ruff-format | ||
|
||
# Autoformat: YAML, JSON, Markdown, etc. | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.1.0 | ||
- repo: https://github.com/pycontribs/mirrors-prettier | ||
rev: v3.3.3 | ||
hooks: | ||
- id: prettier | ||
args: [--ignore-unknown, --no-error-on-unmatched-pattern, "!chart/**"] | ||
args: [--ignore-unknown, --no-error-on-unmatched-pattern] | ||
|
||
# Lint: Markdown | ||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.37.0 | ||
rev: v0.41.0 | ||
hooks: | ||
- id: markdownlint | ||
args: [--fix, --ignore, CHANGELOG.md] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters