-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (129 loc) · 3.39 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
[project]
name = "django-template"
version = "0.1.0"
description = ""
authors = [
{name = "NickiHell", email = "[email protected]"},
]
dependencies = [
"django[argon2]<5.0,>=4.2",
"django-ninja<1.0.0,>=0.22.2",
"django-stubs-ext<5.0.0,>=4.2.1",
"django-csp<4.0,>=3.7",
"django-split-settings<2.0,>=1.2",
"django-http-referrer-policy<2.0,>=1.1",
"django-permissions-policy<5.0,>=4.14",
"django-redis<6.0.0,>=5.3.0",
"gunicorn<21.0.0,>=20.1.0",
"uvicorn<1.0.0,>=0.22.0",
"python-decouple<4.0,>=3.7",
"structlog<24.0.0,>=23.1.0",
"rq<2.0.0,>=1.15.1",
"psycopg2<3.0.0,>=2.9.6",
"aiohttp<4.0.0,>=3.8.3",
"aiojobs<2.0.0,>=1.1.0",
"aiofiles<24.0.0,>=23.1.0",
]
requires-python = ">=3.11,<4.0"
readme = "README.md"
license = {text = "MIT"}
[project.group.dev.dependencies]
black = "^23.3.0"
ruff = "^0.0.275"
django-debug-toolbar = "^4.1"
django-querycount = "^0.8"
django-migration-linter = "^4.1"
django-extra-checks = "^0.13"
django-coverage-plugin = "^3.0"
django-stubs = "^4.2"
django-stubs-ext = "^4.2"
nplusone = "^1.0"
pytest = "^7.1"
pytest-django = "^4.5"
pytest-cov = "^4.1"
pytest-randomly = "^3.12"
pytest-deadfixtures = "^2.2"
pytest-timeout = "^2.1"
django-test-migrations = "^1.2"
hypothesis = "^6.79"
mypy = "^1.3"
yamllint = "^1.27"
safety = "^2.1"
dotenv-linter = "^0.4"
dump-env = "^1.3"
ipython = "^8.10"
[tool.ruff]
line-length = 120
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"B", # flake-bugbear
"Q", # flake8-quotes
"PT", # flake8-pytest-style
"RET", # flake8-return
"SIM", # flake8-simplify
"FBT", # flake8-boolean-trap
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"TRY", # tryceratops
"RUF", # ruff
"PL", # pylint
"DTZ", # flake8-datetimez
"UP", # pyupgrade
"C90", # mccabe
"COM", # flake8-commas
"INP", # flake8-no-pep420
"TID", # flake8-tidy-imports
"PTH", # flake8-use-pathlib
"ERA", # eradicate
]
ignore = [
"Q000",
"E501", # Never enforce line length
"RET504", # Unnecessary variable assignment before `return` statement
"RUF001", # ruff unicode specific rules
"RUF002", # ruff unicode specific rules
"RUF003", # ruff unicode specific rules
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.per-file-ignores]
"*/settings/*" = [
"ERA001", # Found commented-out code
"PLW1508", # Invalid type for environment variable default
"FBT003", # Boolean positional value in function call
]
"tests/*" = [
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"ERA001", # Found commented-out code
"PLR0913", # Too many arguments to function call
"PLR2004", # Magic value used in comparison
"INP001", # File is part of an implicit namespace package
]
"*/migrations/*" = [
"INP001", # Add an `__init__.py`
"ERA001", # Found commented-out code
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
unfixable = [
"B", # Avoid trying to fix flake8-bugbear violations.
"ERA", # Avoid deleting commented-out code
]
extend-exclude = []
[tool.ruff.mccabe]
max-complexity = 10
[tool.isort]
profile = "black"
line_length = 120
lines_after_imports = 2
ensure_newline_before_comments = true
[tool.black]
line-length = 120
target-version = ["py311"]
skip-string-normalization = true
[tool.pdm.build]
includes = []
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"