Skip to content

Commit

Permalink
Standardize on ruff for python formatting/linting via pre-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Mar 1, 2024
1 parent f3d7e29 commit 5ac5fe7
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,17 @@ repos:
- id: end-of-file-fixer
exclude: ^testing/Baseline|examples/.*Baseline.*

- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black

- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.15.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/pycqa/flake8
rev: 6.1.0 # 6.0.0 requires Python 3.8
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: flake8
- id: ruff
args: [--fix]
- id: ruff-format

exclude: examples/sphinx/conf.py

0 comments on commit 5ac5fe7

Please sign in to comment.