Skip to content

Commit

Permalink
replace flake8/isort by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Mar 6, 2023
1 parent daedffa commit 4c01bdb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
10 changes: 0 additions & 10 deletions setup.cfg

This file was deleted.

0 comments on commit 4c01bdb

Please sign in to comment.