diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1696b86..e6d3ce7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,11 +5,10 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 - - run: pip install flake8 isort + - run: pip install ruff - name: linters run: | - flake8 - isort -c mfa + ruff mfa tests test: runs-on: ubuntu-latest strategy: diff --git a/pyproject.toml b/pyproject.toml index ca0ca86..e911873 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,5 +2,16 @@ requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" +[tool.ruff] +target-version = "py37" +exclude = ["migrations"] +select = ["E", "F", "W", "C9", "I", "Q"] + +[tool.ruff.flake8-quotes] +inline-quotes = "single" + +[tool.ruff.isort] +force-single-line = true + [tool.coverage.run] source = ["mfa"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 78b1c16..0000000 --- a/setup.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[flake8] -exclude = - .venv, - .git, - migrations, -max-complexity = 8 - -[isort] -force_single_line = True -skip = migrations