forked from logical-mechanism/Collateral-Provider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
37 lines (33 loc) · 853 Bytes
/
Copy pathpyproject.toml
File metadata and controls
37 lines (33 loc) · 853 Bytes
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
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = ["venv", "staticfiles", "migrations"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
# The cbor test file has long inline hex blobs as test fixtures; allow them.
"E501",
]
[tool.ruff.lint.per-file-ignores]
# Tests use bare assertions and patch decorators that look like unused arguments.
"**/tests/**" = ["B011"]
[tool.coverage.run]
branch = true
source = ["api"]
omit = ["**/migrations/*", "**/tests/*"]
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
]