diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 74764752e80..7e1bedf5883 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/Makefile b/Makefile index ec415962740..fa1caa140b3 100644 --- a/Makefile +++ b/Makefile @@ -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: