Skip to content

Commit

Permalink
ci: replace flake8 with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Nov 4, 2024
1 parent e337c88 commit 96f2838
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ pytest-xdist = '^3.1.0'
black = '^24.1.0'
mypy = '^1.0.1'
py-githooks = '^1.1.1'
flake8 = '^7.0.0'
flake8-bugbear = '^24.0.0'
flake8-builtins = '^2.1.0'
flake8-comprehensions = '^3.10.1'
twine = '^5.1.1'
semver = '^3.0.0'
setuptools-scm = '^8.0.0'
Expand Down Expand Up @@ -91,6 +87,9 @@ exclude_lines = ['pragma: no-cover', 'if TYPE_CHECKING:', '@abstractmethod']

[tool.ruff.lint]
extend-select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"I", # isort
]

Expand Down
1 change: 0 additions & 1 deletion tasks/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

lint_commands = {
"black": lambda fix: f"python -m black {'' if fix else '--check'} .",
"flake8": lambda _: "python -m flake8 src tests benchmarks *.py",
"mypy": lambda _: "python -m mypy --strict src benchmarks",
"ruff": lambda fix: f"python -m ruff check {'--fix' if fix else ''} .",
}
Expand Down

0 comments on commit 96f2838

Please sign in to comment.