Skip to content

Commit

Permalink
replace flake and black with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
florianziemen committed Nov 15, 2024
1 parent d268c6f commit 64305f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ repos:
rev: v0.991
hooks:
- id: mypy
- repo: https://github.com/psf/black
rev: 22.10.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.4
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.7.0
hooks:
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ test_coverage:

lint:
mypy --install-types --non-interactive
black --check -t py310 .
flake8 slkspec --count --max-complexity=10 --max-line-length=88 --statistics --doctests
ruff check .

0 comments on commit 64305f8

Please sign in to comment.