-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (59 loc) · 1.38 KB
/
pyproject.toml
File metadata and controls
66 lines (59 loc) · 1.38 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tool.ruff]
line-length = 120
[tool.ruff.lint]
# Enable flake8-bugbear (`B`) rules.
select = [
"A",
"B",
"E",
"F",
"S",
"W",
"N",
"G",
"C4",
"EM",
"PL", "UP",
"YTT",
"INT",
"ISC",
"ICN",
"PIE",
"T20",
"PYI",
"PT",
"RET",
"INT",
"RUF",
"FBT",
"SIM",
"TID",
"PTH",
]
ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"PT009", # Use a regular `assert` instead of unittest-style `{assertion}`
"S308", # Use of `mark_safe` may expose cross-site scripting vulnerabilities
"PLR2004", # magic-rvalue-comparison
"N813", # Camelcase `BeautifulSoup` imported as lowercase `bs`
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
# Ignore `E501` (line length) in all `__init__.py` and migration files
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E501"]
"**/migrations/*.py" = ["E501"]
"docs/conf.py" = ["A001", "PTH100"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "lite_cms_core_sample.settings"
# -- recommended but optional:
python_files = ["tests.py", "test_*.py"]
[tool.coverage.run]
include = ["lite_cms_core/*"]
omit = [
"*/tests.py",
"**/*migrations*/*",
]
[tool.django-stubs]
django_settings_module = "lite_cms_core_sample.settings"