Skip to content

Commit

Permalink
test: added ruff rules for pyupgrade and flynt, removed from precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Sep 4, 2023
1 parent 85e70eb commit f6c942a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@ repos:
- id: ruff
args: ["--fix"]

- repo: https://github.com/ikamensh/flynt/
rev: "1.0.1"
hooks:
- id: flynt

- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
- id: pyupgrade
args: ["--py311-plus"]

- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ build-backend = "setuptools.build_meta"
[tool.setuptools_scm]

[tool.ruff]
select = ["E", "F", "B", "I", "PLE"]
select = [
"E", # pycodestyle errrors
"F", # pyflakes
"B", # flake8-bugbear
"I", # isort
"PLE", # pylint errors
"UP", # pyUpgrade
"FLY", # flynt
]
ignore = ["B905", "B008", "B006"]
line-length = 120
src = ["src", "tests"]
Expand Down

0 comments on commit f6c942a

Please sign in to comment.