Skip to content

Commit 57d2691

Browse files
DimitriPapadopoulosadrienverge
authored andcommitted
Revert replacement of flake8 with ruff
Start with reverting parts of commit 26be794 in #629 related to config and CI jobs.
1 parent 3cb3a20 commit 57d2691

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.flake8

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
import-order-style = pep8
3+
application-import-names = yamllint
4+
ignore = W503,W504

.github/workflows/ci.yaml

+2-2
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 ruff sphinx rstcheck[sphinx] doc8
24+
pip install flake8 flake8-import-order sphinx rstcheck[sphinx] doc8
2525
- run: pip install .
26-
- run: ruff .
26+
- run: flake8 .
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

-6
This file was deleted.

CONTRIBUTING.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pull Request Process
2323

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

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ dynamic = ["version"]
2626
[project.optional-dependencies]
2727
dev = [
2828
"doc8",
29+
"flake8",
30+
"flake8-import-order",
2931
"rstcheck[sphinx]",
30-
"ruff",
3132
"sphinx",
3233
]
3334

0 commit comments

Comments
 (0)