diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 149b926..d6560c2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: hooks: - id: black language_version: python - - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: 'v0.0.245' hooks: - - id: flake8 + - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 9c22f9f..7f5371f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,3 +27,12 @@ dev = [ "pre-commit>=3", "mypy>=0.991" ] + +[tool.ruff] +line-length = 88 +ignore = ["E402"] + +[tool.mypy] +warn_return_any = true +check_untyped_defs = true +warn_unused_configs = true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 1a42d1d..0000000 --- a/setup.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[flake8] -max-line-length = 88 -ignore = E402, W503 - -[mypy] -warn_return_any = True -check_untyped_defs = True -warn_unused_configs = True