Skip to content

Commit

Permalink
Switch to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Jan 14, 2025
1 parent 94b78d8 commit e2dd247
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 282 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

19 changes: 5 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@ default_language_version:
node: system
python: python3.13
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.9.1' # keep in sync with pyproject.toml
hooks:
- id: black
language_version: python3.13
exclude: .+/migrations
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
# flake8 config is in setup.cfg
rev: 7.1.1
hooks:
- id: flake8
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: local
hooks:
Expand Down
Loading

0 comments on commit e2dd247

Please sign in to comment.