Skip to content

Commit

Permalink
replace unofficial with official pre-commit hook for ruff (microsoft#…
Browse files Browse the repository at this point in the history
…2229)

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
  • Loading branch information
davorrunje and ekzhu committed Apr 1, 2024
1 parent 35b8435 commit 26666da
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ repos:
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.3.3
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
hooks:
- id: ruff
args: ["--fix"]
types_or: [ python, pyi, jupyter ]
args: ["--fix", "--ignore=E402"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
Expand Down Expand Up @@ -61,9 +62,6 @@ repos:
# Print the number of files as a sanity-check
verbose: true
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.4
rev: 1.8.5
hooks:
- id: nbqa-ruff
# Don't require notebooks to have all imports at the top
args: ["--fix", "--ignore=E402"]
- id: nbqa-black

0 comments on commit 26666da

Please sign in to comment.