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 Nov 7, 2023
1 parent 1f86a7f commit 6619254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.1
hooks:
- id: black
args: [--target-version=py38]
- id: ruff-format

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

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

0 comments on commit 6619254

Please sign in to comment.