-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
88 lines (79 loc) · 1.73 KB
/
pyproject.toml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool.ruff]
target-version = "py310"
fix = true
format = "text"
line-length = 100
select = [
"E",
"F",
"W",
"B",
"I",
"UP",
"N",
"B",
"A",
"C4",
"ISC",
"ICN",
"T20",
"C90",
"PT",
"Q",
"RET",
"SIM",
"TID",
"ERA",
"PLC",
"PLE",
"PLR",
"PLW",
"PIE",
"RUF",
]
extend-ignore = ["A003", "RUF005", "N999", "RUF012"]
exclude = [
".git",
".mypy_cache",
".ruff_cache",
"build",
"dist",
"node_modules",
"migrations",
]
[tool.ruff.isort]
combine-as-imports = true
force-single-line = false
[tool.ruff.pylint]
allow-magic-value-types = ["int", "str", "bytes"]
[tool.isort]
profile = "black"
line_length = 100
atomic = true
skip = "migrations"
[tool.ruff.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "double"
avoid-escape = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "app.settings"
norecursedirs = "assets static uploads .git node_modules htmlcov .tox .cache .pnpm-store"
python_files = "tests.py *_tests.py"
addopts = "--maxfail=1 -rf -s --nomigrations --cov=. --cov-report=html --cov-report=term:skip-covered --numprocesses=auto"
[tool.yapfignore]
ignore_patterns = ["**/migrations/*.py"]
[tool.yapf]
based_on_style = "pep8"
dedent_closing_brackets = true
coalesce_brackets = false
allow_split_before_dict_value = false
column_limit = 100
split_before_dot = false
split_all_top_level_comma_separated_values = true
spaces_around_tuple_delimiters = false
space_between_ending_comma_and_closing_bracket = false
blank_line_before_nested_class_or_def = false
align_closing_bracket_with_visual_indent = true
split_before_first_argument = false
split_before_expression_after_opening_paren = true