Switch formatting from black to ruff-format

This commit is contained in:
Aarni Koskela 2023-10-30 20:17:17 +02:00
parent 1f86a7fb9f
commit 66192544f6
2 changed files with 2 additions and 8 deletions

View File

@ -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

View File

@ -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 .