diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6aabd92..d4464c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,10 @@ repos: - id: isort args: ["--profile", "black"] - - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.261 hooks: - - id: flake8 - additional_dependencies: - - flake8-bugbear + - id: ruff - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 diff --git a/pyproject.toml b/pyproject.toml index 22fd9e7..45ec26a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,3 +19,21 @@ exclude = ''' | venv )/ ''' + +[tool.ruff] +ignore = [ + "B905", + "E501", +] +line-length = 88 +select = [ + "B", + "B9", + "C", + "E", + "F", + "W", +] + +[tool.ruff.mccabe] +max-complexity = 10 diff --git a/setup.cfg b/setup.cfg index 9fe97a7..634778d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -128,9 +128,3 @@ exclude = images* scripts* tests* - -[flake8] -ignore = B905, B950, E501, W503 -max-line-length = 88 -max-complexity = 10 -select = B,C,E,F,W,T4,B9