Skip to content

Commit 26be794

Browse files
build: Replace flake8 with ruff
Add isort (I) rules to the default set of ruff rules, as a replacement for flake8-import-order.
1 parent 1d65ab6 commit 26be794

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.flake8

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v5
2323
- run:
24-
pip install flake8 flake8-import-order sphinx rstcheck[sphinx] doc8
24+
pip install ruff sphinx rstcheck[sphinx] doc8
2525
- run: pip install .
26-
- run: flake8 .
26+
- run: ruff .
2727
- run: doc8 $(git ls-files '*.rst')
2828
- run: rstcheck --ignore-directives automodule $(git ls-files '*.rst')
2929
- run: yamllint --strict $(git ls-files '*.yaml' '*.yml')

.ruff.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[lint]
2+
extend-select = ["I"]
3+
4+
[lint.isort]
5+
known-third-party = ["tests"]

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pull Request Process
2323

2424
.. code:: bash
2525
26-
flake8 .
26+
ruff .
2727
2828
If you added/modified documentation:
2929

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ dynamic = ["version"]
2626
[project.optional-dependencies]
2727
dev = [
2828
"doc8",
29-
"flake8",
30-
"flake8-import-order",
3129
"rstcheck[sphinx]",
30+
"ruff",
3231
"sphinx",
3332
]
3433

0 commit comments

Comments
 (0)