Switch formatting from black to ruff-format

This commit is contained in:
Aarni Koskela 2023-10-30 20:17:17 +02:00
parent 9ca5568222
commit f6e3aa50bb
2 changed files with 2 additions and 7 deletions

View File

@ -4,11 +4,7 @@ repos:
hooks: hooks:
- id: ruff - id: ruff
args: [--exit-non-zero-on-fix] args: [--exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: 1.7.9 rev: 1.7.9

View File

@ -114,10 +114,9 @@ lint:
.PHONY: lint-fix .PHONY: lint-fix
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 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff
python3 -m ruff check --fix . python3 -m ruff check --fix .
python3 -m ruff format .
.PHONY: mypy .PHONY: mypy
mypy: mypy: