Skip to content

Commit

Permalink
Revert replacement of flake8 with ruff
Browse files Browse the repository at this point in the history
Start with reverting parts of commit 26be794 in #629 related to config
and CI jobs.
  • Loading branch information
DimitriPapadopoulos authored and adrienverge committed Feb 2, 2024
1 parent 3cb3a20 commit 57d2691
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
import-order-style = pep8
application-import-names = yamllint
ignore = W503,W504
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
- run:
pip install ruff sphinx rstcheck[sphinx] doc8
pip install flake8 flake8-import-order sphinx rstcheck[sphinx] doc8
- run: pip install .
- run: ruff .
- run: flake8 .
- run: doc8 $(git ls-files '*.rst')
- run: rstcheck --ignore-directives automodule $(git ls-files '*.rst')
- run: yamllint --strict $(git ls-files '*.yaml' '*.yml')
Expand Down
6 changes: 0 additions & 6 deletions .ruff.toml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Pull Request Process

.. code:: bash
ruff .
flake8 .
If you added/modified documentation:

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ dynamic = ["version"]
[project.optional-dependencies]
dev = [
"doc8",
"flake8",
"flake8-import-order",
"rstcheck[sphinx]",
"ruff",
"sphinx",
]

Expand Down

0 comments on commit 57d2691

Please sign in to comment.