Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions templates/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repos:
- id: trailing-whitespace

# Hooks from all other repos
# NOTE : keep these in hook-name (aka 'id') order
# In terms of ordering: hooks that modify files should be placed before hooks that do not.

- repo: https://github.com/adamchainz/blacken-docs
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
Expand All @@ -67,6 +67,23 @@ repos:
- id: blacken-docs
types: [file, rst]

- repo: https://github.com/astral-sh/ruff-pre-commit
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: "v0.7.4"
hooks:
- id: ruff-check
types: [file, python]
args: [--fix, --show-fixes]
- id: ruff-format
types: [file, python]

- repo: https://github.com/aio-libs/sort-all
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: v1.3.0
hooks:
- id: sort-all
types: [file, python]

- repo: https://github.com/codespell-project/codespell
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: "v2.3.0"
Expand All @@ -89,23 +106,6 @@ repos:
- id: numpydoc-validation
types: [file, python]

- repo: https://github.com/astral-sh/ruff-pre-commit
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: "v0.7.4"
hooks:
- id: ruff-check
types: [file, python]
args: [--fix, --show-fixes]
- id: ruff-format
types: [file, python]

- repo: https://github.com/aio-libs/sort-all
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: v1.3.0
hooks:
- id: sort-all
types: [file, python]

- repo: https://github.com/scientific-python/cookie
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: 2024.08.19
Expand All @@ -126,4 +126,3 @@ repos:
rev: v1.25.2
hooks:
- id: zizmor

Loading