Skip to content

Commit

Permalink
Use ruff instead of flake8 and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Mar 16, 2024
1 parent 3ed4c23 commit aee399d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Expand Up @@ -22,6 +22,4 @@ jobs:
- name: Launch tests
run: python -m pytest
- name: Check coding style
run: python -m flake8
- name: Check imports order
run: python -m isort . --check --diff
run: python -m ruff check
7 changes: 3 additions & 4 deletions pyproject.toml
Expand Up @@ -41,7 +41,7 @@ Donation = 'https://opencollective.com/courtbouillon'

[project.optional-dependencies]
doc = ['sphinx', 'sphinx_rtd_theme']
test = ['pytest', 'isort', 'flake8']
test = ['pytest', 'ruff']

[tool.flit.sdist]
exclude = ['.*']
Expand All @@ -54,6 +54,5 @@ include = ['tests/*', 'pyphen/*']
exclude_lines = ['pragma: no cover', 'def __repr__', 'raise NotImplementedError']
omit = ['.*']

[tool.isort]
default_section = 'FIRSTPARTY'
multi_line_output = 4
[tool.ruff.lint]
select = ['E', 'F', 'I']

0 comments on commit aee399d

Please sign in to comment.