-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
109 lines (96 loc) · 2.2 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[project]
name = "django-ninja-extra-demo"
description = "Django Ninja Extra Demo"
authors = [
{name = "godd0t", email = "lirrishala@gmail.com"},
]
dynamic = ["dependencies"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --no-migrations --reuse-db --log-cli-level=INFO" # <-- add your options here
testpaths = [
"tests",
]
asyncio_mode = "auto" # <-- enable asyncio support
python_files = "tests.py test_*.py *_tests.py"
DJANGO_SETTINGS_MODULE = "project.settings" # <-- define your settings module here
[tool.black]
line-length = 88
target-version = ['py39', 'py310', 'py311']
include = '\.pyi?$'
exclude = '''
/(
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data/
| profiling
| migrations
| docs
| deplyoment
| .git
| scripts
| codebase/media
| codebase/static
| codebase/idp_user
)/
'''
[tool.isort]
profile = "black"
skip = "migrations"
[tool.ruff]
line-length = 88
extend-exclude = [
"*/migrations/*",
"codebase/media/*",
"codebase/static/*",
"codbase/documents/tests/test_data/*",
"codebase/manage.py",
"*__init__.py",
"idp_user"
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"F405", # name may be undefined, or defined from star imports
]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"migrations",
"venv",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11.
target-version = "py311"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10