Skip to content

Commit

Permalink
lint: tighten ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-100 committed Jul 15, 2024
1 parent d382d9d commit e355fd0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,21 @@ module = "playwright"
disallow_untyped_calls = false

[tool.ruff.lint]
# Enable rulesets:
# flake8-ANNotations, flake8-COMmas, pyDocstyle, pycodestylE, pyFlakes, Isort,
# flake8-Future-Annotations, flake8-bandit (S)
select = ["ANN", "COM", "D", "E", "F", "I", "FA", "S"]
select = ["ALL"]

# Ignore rules that conflict with Ruff formatter:
# COM812 Trailing comma missing
ignore = ["COM812"]
# ISC001 Implicitly concatenated string literals on one line
ignore = ["COM812", "ISC001"]

[tool.ruff.lint.per-file-ignores]
# Use of `assert` detected
"**/{tests}/*" = ["S101"]
# Ignore rules that aren't relevant/useful in tests:
# PLR2004 Magic value used in comparison
# S101 Use of assert detected
"**/{tests}/*" = ["PLR2004", "S101"]
# Ignore rules that aren't relevant/useful in example scripts:
# T203 `pprint` found
"example*.py" = ["T203"]

[tool.ruff.lint.pydocstyle]
convention = "numpy"
Expand Down

0 comments on commit e355fd0

Please sign in to comment.