Skip to content

Commit

Permalink
Migrate to Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
wfondrie committed Apr 15, 2024
1 parent 56024f5 commit c910c4d
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-private-key
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.3.7
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix, --show-fixes ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]

0 comments on commit c910c4d

Please sign in to comment.