From 1f11967f3f11a257bb1f06d1b69fb99d74fa0a9f Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 8 Mar 2023 03:29:34 -0600 Subject: [PATCH] build: swap ruff for flake8 --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 9 +++++++++ setup.cfg | 8 -------- 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 setup.cfg 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