-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
14 lines (14 loc) · 887 Bytes
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[tool.ruff]
fix = true
select = ["F", "E", "C90", "I", "N", "D", "UP", "YTT", "ANN", "S", "BLE", "FBT", "B", "A", "COM", "C4", "DTZ", "T10", "DJ", "EM", "EXE", "ISC", "ICN", "G", "INP", "PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", "SLF", "SIM", "TID", "TCH", "ARG", "PTH", "ERA", "PD", "PGH", "PL", "PLC", "PLE", "PLW", "PLR", "TRY", "NPY", "RUF"]
ignore = ["ANN101"]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = [
# at least this three should be fine in tests:
"S101", # asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
# The below are debateable
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]