Skip to content

Commit

Permalink
Enable more ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jl-wynen committed Apr 26, 2024
1 parent dbd8278 commit 5e47fa4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ extend-include = ["*.ipynb"]
extend-exclude = [".*", "__pycache__", "build", "dist", "venv"]

[tool.ruff.lint]
select = ["B", "D", "E", "F", "G", "I", "S", "T20", "UP", "PGH", "FBT003", "RUF"]
select = ["B", "C4", "D", "DTZ", "E", "F", "G", "I", "FBT003", "PERF", "PGH", "PT", "PYI", "RUF", "S", "T20", "W"]
ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"S324", # insecure hsh function; we don't use hashing for security
"E741", "E742", "E743", # do not use names ‘l’, ‘O’, or ‘I’; they are not a problem with a proper font
"D105", # most magic methods don't need docstrings as their purpose is always the same
"E741", "E742", "E743", # do not use names ‘l’, ‘O’, or ‘I’; they are not a problem with a proper font
"UP038", # does not seem to work and leads to slower code
"E111", "E114", "E117", "D206", "D300", # conflict with ruff format
"D105",
# Conflict with ruff format, see
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812", "COM819", "D206", "D300", "E111", "E114", "E117", "ISC001", "ISC002", "Q000", "Q001", "Q002", "Q003", "W191",
]
fixable = ["I001"]
isort.known-first-party = ["scitacean"]
Expand All @@ -111,6 +111,7 @@ pydocstyle.convention = "numpy"
"tests/*" = [
"S101", # asserts are fine in tests
"D10", # no docstrings required in tests
"S324", # insecure hsh function; we don't use hashing for security
]
"docs/*" = [
"D", "E402", "F811", "F841", "RUF015", "S101", "T201",
Expand Down

0 comments on commit 5e47fa4

Please sign in to comment.