Skip to content

Commit

Permalink
tests: use flake8-comprehensions and flake8-raise with ruff
Browse files Browse the repository at this point in the history
use flake8-comprehensions and flake8-raise with ruff because of their
autofix behaviour. Also update versions.

Change-Id: I2634ae2a56abd3ec2d0cb080b8ce8bfa9065b8ae
  • Loading branch information
xqt committed Dec 9, 2024
1 parent 07d061a commit 1263be2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ repos:
- --doctests
additional_dependencies:
# Due to incompatibilities between packages the order matters.
- flake8-bugbear!=24.1.17
- flake8-comprehensions>=3.13.0
- flake8-bugbear>=24.10.31
- flake8-mock-x2
- flake8-print>=5.0.0
- flake8-quotes>=3.3.2
- flake8-raise
- flake8-quotes>=3.4.0
- flake8-tuple>=0.4.1
- pep8-naming>=0.13.3
- pep8-naming>=0.14.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ ignore_roles = ["api", "phab", "pylib", "source", "wiki"]


[tool.ruff.lint]
select = ["D"]
select = ["C4", "D", "RSE"]
ignore = ["D105", "D211", "D213", "D214", "D401", "D404", "D406", "D407", "D412", "D413", "D416", "D417"]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit 1263be2

Please sign in to comment.