-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
38 lines (33 loc) · 1.49 KB
/
pyproject.toml
File metadata and controls
38 lines (33 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[tool.ruff]
extend = "../pyproject.toml"
lint.ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"PTH123", # Use `pathlib.Path` instead of `os.path`,
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"T201", #`print` found
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `expected_data`
"FBT001", # Boolean positional arg in function definition
"FBT002", # Boolean keyword arg in function definition
"FBT003", # Boolean positional value in function call
"PLR2004", # Magic value used in comparison, consider replacing value with a constant variable
"DTZ007", # the use of `datetime.datetime.strptime()` without %z must be followed by `.replace(tzinfo=)` or `.astimezone()`
]
# Ruff currently supports up to Python 3.13; use py313 as target until py314 is released upstream.
# (Runtime may be 3.14; this setting only affects linting's syntax features.)
target-version = "py313"
[tool.ruff.lint.per-file-ignores]
"**test_*.py" = ["S101"] # Allow `assert` in tests.
"integration**.py" = ["S101"] # Allow `assert` in tests.
"smoke**.py" = ["S101"] # Allow `assert` in tests.
"conftest.py" = [
"ANN001",
"PLR0913",
"ARG001",
"BLE001",
] # Conftest files break many rules.
"performance/functions/performance_test.py" = [
"ERA001",
] # Allow commented out code in performance tests.
[tool.ruff.lint.pydocstyle]
convention = "google" # Use Google docstring convention.