Revert replacement of flake8 with ruff

Start with reverting parts of commit 26be794 in #629 related to config
and CI jobs.
This commit is contained in:
Dimitri Papadopoulos 2024-02-01 17:21:30 +01:00 committed by Adrien Vergé
parent 3cb3a20385
commit 57d2691713
5 changed files with 9 additions and 10 deletions

4
.flake8 Normal file
View File

@ -0,0 +1,4 @@
[flake8]
import-order-style = pep8
application-import-names = yamllint
ignore = W503,W504

View File

@ -21,9 +21,9 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
- run: - run:
pip install ruff sphinx rstcheck[sphinx] doc8 pip install flake8 flake8-import-order sphinx rstcheck[sphinx] doc8
- run: pip install . - run: pip install .
- run: ruff . - run: flake8 .
- run: doc8 $(git ls-files '*.rst') - run: doc8 $(git ls-files '*.rst')
- run: rstcheck --ignore-directives automodule $(git ls-files '*.rst') - run: rstcheck --ignore-directives automodule $(git ls-files '*.rst')
- run: yamllint --strict $(git ls-files '*.yaml' '*.yml') - run: yamllint --strict $(git ls-files '*.yaml' '*.yml')

View File

@ -1,6 +0,0 @@
[lint]
extend-select = ["B", "I", "PGH", "TRY", "UP"]
ignore = ["TRY003"]
[lint.isort]
known-third-party = ["tests"]

View File

@ -23,7 +23,7 @@ Pull Request Process
.. code:: bash .. code:: bash
ruff . flake8 .
If you added/modified documentation: If you added/modified documentation:

View File

@ -26,8 +26,9 @@ dynamic = ["version"]
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"doc8", "doc8",
"flake8",
"flake8-import-order",
"rstcheck[sphinx]", "rstcheck[sphinx]",
"ruff",
"sphinx", "sphinx",
] ]