Skip to content

Commit

Permalink
Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
woctezuma committed Nov 18, 2023
1 parent f0a2400 commit 0fa42db
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
files: \.(json|py)$
default_stages: [commit, manual]
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --indent, "4", --no-sort-keys]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.228
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args: [--fix, --target-version, "py311", --extend-select, "I", --extend-ignore, "F841,E501"]
args: [--fix, --unsafe-fixes, --exit-non-zero-on-fix, --target-version, "py312", --select, "ALL", --ignore, "ANN101,C90,CPY001,D,E501,ERA001,FBT,INP001,PLR091,PLR2004,PLR6301,Q,RUF001,S101,S113,T20"]
- id: ruff-format

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
- repo: https://github.com/dosisod/refurb
rev: v1.24.0
hooks:
- id: add-trailing-comma
- id: refurb
args: [--python-version, "3.12"]
stages: [manual]

0 comments on commit 0fa42db

Please sign in to comment.