Skip to content

Commit

Permalink
build: Replace flake8 with ruff
Browse files Browse the repository at this point in the history
- Enable isort (I) rules, in addition to the default set of rules.
  • Loading branch information
DimitriPapadopoulos committed Dec 31, 2023
1 parent 152ba20 commit ef66367
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- run:
pip install flake8 flake8-import-order sphinx rstcheck[sphinx] doc8
- run: pip install .
- run: flake8 .
- run: ruff .
- 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
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extend-select = ["I"]
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
flake8 .
ruff .
If you added/modified documentation:

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

0 comments on commit ef66367

Please sign in to comment.