Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
chore: upgrade pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Apr 23, 2024
1 parent 6dae8e8 commit 9470d0f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ __pycache__/
# C extensions
*.so


# Distribution / packaging
.Python
build/
Expand Down
25 changes: 21 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"
autoupdate_schedule: quarterly

repos:
- repo: https://github.com/adamchainz/blacken-docs
rev: "1.16.0"
hooks:
- id: blacken-docs
additional_dependencies: [black==23.*]
additional_dependencies: [black]

- repo: https://github.com/sondrelg/pep585-upgrade
rev: "v1.0"
Expand Down Expand Up @@ -137,12 +142,24 @@ repos:
rev: 0.7.1
hooks:
- id: nbstripout

- repo: https://github.com/MarcoGorelli/auto-walrus
rev: 0.3.3
hooks:
- id: auto-walrus

- repo: https://github.com/shssoichiro/oxipng
rev: v9.1.0
# uncomment locally if needed, currently needs rust version not available on pre-commit.ci
# - repo: https://github.com/shssoichiro/oxipng
# rev: v9.1.0
# hooks:
# - id: oxipng

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.1"
hooks:
- id: oxipng
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --unsafe-fixes, --show-fixes]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi, jupyter]

0 comments on commit 9470d0f

Please sign in to comment.