-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
153 lines (136 loc) · 3.55 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[project]
name = "bbq"
version = "0.0.0-dev"
requires-python = ">=3.11"
dependencies = [
"Django",
"djoser",
"bcrypt",
"django-behaviors",
"django-environ",
"django-ipware",
"django-axes",
"whitenoise",
"django-storages",
"djangorestframework",
"djangorestframework_simplejwt",
"djangorestframework-camel-case",
"drf-jwt",
"drf-spectacular[sidecar]",
"drf-nested-routers",
"django-filter",
"django-split-settings",
"django-healthchecks",
"django-cors-headers",
"redis",
"sentry-sdk",
"Pillow",
"psycopg2-binary",
]
[project.optional-dependencies]
dev = [
"ipython",
"pytest-django>=3.9",
"pytest-unused-fixtures",
"pytest-env",
"pytest-freezegun",
"pytest-mock",
"pytest-randomly",
"pytest-lazy-fixture",
"pytest-xdist",
"black",
"autoflake==1.7.0",
"dotenv-linter",
"freezegun",
"mixer",
"mimesis",
"jedi",
"flake8-absolute-import",
"flake8-black",
"flake8-bugbear",
"flake8-cognitive-complexity",
"flake8-django",
"flake8-eradicate",
"flake8-isort>=4.0.0",
"flake8-fixme",
"flake8-pep3101",
"flake8-pie",
"flake8-print",
"flake8-printf-formatting",
"flake8-pytest",
"flake8-pytest-style",
"flake8-simplify",
"flake8-todo",
"flake8-use-fstring",
"flake8-variables-names",
"flake8-walrus",
"flake8-pyproject",
"mypy",
"django-stubs",
"djangorestframework-stubs",
"types-freezegun",
"types-Pillow",
"types-pytest-lazy-fixture",
]
[tool.flake8]
max-line-length = 120
inline-quotes = "\""
ignore = [
"DJ05", # URLs include() should set a namespace
"E501", # Line too long
"E265", # Block comments should have one space before the pound sign (#) and the comment itself
"F811", # Redefinition of unused name from line n
"PT001", # Use @pytest.fixture() over @pytest.fixture
"SIM102", # Use a single if-statement instead of nested if-statements
"SIM113", # Use enumerate instead of manually incrementing a counter
"E203", # whitespace before ':', disabled for black purposes https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
]
exclude = [
"static",
"migrations",
"frontend",
".git",
"__pycache__",
]
[tool.isort]
profile = "black"
line_length = 120
extra_standard_library = ["pytest"]
known_django = ["django", "restframework"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "DJANGO", "FIRSTPARTY", "LOCALFOLDER"]
use_parentheses = true
include_trailing_comma = true
multi_line_output = 3
[tool.black]
exclude = '''
/(
| migrations
)/
'''
line_length = 120
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "app.settings"
python_files = ["test*.py"]
pythonpath = ". src"
addopts = ["--reuse-db"]
markers = [
"freeze_time: freezing time marker (pytest-freezegun does not register it)",
]
filterwarnings = [ # Pattern: `action:message:category:module:line` (https://docs.python.org/3/library/warnings.html#describing-warning-filters)
"ignore:.*'rest_framework_jwt.blacklist' defines default_app_config.*You can remove default_app_config.::django",
"ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning:pytest_freezegun:17",
]
env = [
"CI=1",
"CELERY_ALWAYS_EAGER=True",
"DISABLE_THROTTLING=True",
"AXES_ENABLED=False",
"DEBUG=Off",
"SECRET_KEY=secret",
"DATABASE_URL=sqlite:///db.sqlite",
]
[tool.mypy]
env = [
"SECRET_KEY=secret",
"DATABASE_URL=sqlite:///db.sqlite",
]