Skip to content

Commit

Permalink
Switch formatting from black to ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Aug 6, 2024
1 parent a4e79ba commit 7a8ec8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ repos:
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black
- id: ruff-format

- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ lint:

.PHONY: lint-fix
lint-fix:
python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black
python3 -m black .
python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff
python3 -m ruff check --fix .
python3 -m ruff format .

.PHONY: mypy
mypy:
Expand Down

0 comments on commit 7a8ec8d

Please sign in to comment.