Skip to content

Commit

Permalink
Merge pull request #65 from Kozea/ruff
Browse files Browse the repository at this point in the history
Use Ruff instead of Flake8 and isort
  • Loading branch information
liZe authored Apr 23, 2024
2 parents e556be0 + e3341da commit c19c741
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/doconfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: doconfly
on:
push:
branches:
- master
- main
tags:
- "*"

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,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
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
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,6 @@ 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', 'W', 'F', 'I', 'N', 'RUF']
ignore = ['RUF001', 'RUF002', 'RUF003']

0 comments on commit c19c741

Please sign in to comment.