Skip to content

Commit

Permalink
updated pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnodgrass committed Mar 26, 2024
1 parent b0eca8d commit abc3918
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# auto-update pre-commit versions (if > 1 week)
if which runonce &> /dev/null; then
DIR=`basename $(pwd)`
runonce -b -n $DIR -d 7 pre-commit autoupdate
fi
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.3.0
hooks:
- id: black
args: [--config=pyproject.toml]
- repo: https://github.com/hadialqattan/pycln
rev: v2.2.2
rev: v2.4.0
hooks:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
files: "\\.(py)$"
args: [--settings-path=pyproject.toml]
- repo: https://github.com/dosisod/refurb
rev: v1.21.0
rev: v2.0.0
hooks:
- id: refurb
- repo: https://github.com/asottile/pyupgrade
rev: v3.13.0
rev: v3.15.2
hooks:
- id: pyupgrade
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.262'
rev: 'v0.3.4'
hooks:
- id: ruff

0 comments on commit abc3918

Please sign in to comment.