diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6b1c630041..63967f254f9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/Makefile b/Makefile index b7f07e24d07..7e0419f206c 100644 --- a/Makefile +++ b/Makefile @@ -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 .