-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
151 lines (137 loc) · 3.94 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
[tool.poetry]
name = "project"
version = "0.0.1"
description = "django.wtf"
authors = ["Dani Hodovic <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.11"
psycopg2 = "^2.9.3"
whitenoise = "^6.0.0"
django-anymail = "^10.3"
gunicorn = "^20.1.0"
django-extensions = "^3.1.5"
django-environ = "^0.8.1"
django-model-utils = "^4.2.0"
django-meta = { git = "https://github.com/ivanchenkodmitry/django-meta", rev = "patch-1" }
django-health-check = "^3.16.5"
django-allauth = "^0.63.3"
django-filter = "^24.2"
django-debug-toolbar = "^3.2.4"
celery = "^5.2.3"
Django = "^5.0.6"
django-celery-beat = "^2.4.0"
django-allauth-ui = "^1.0.0"
django-widget-tweaks = "^1.4.12"
redis = "^4.1.3"
requests = "^2.27.1"
django-redis = "^5.2.0"
ptipython = "^1.0.1"
ptpython = "^3.0.20"
argon2-cffi = "^21.3.0"
django-constance = { extras = ["database"], version = "^2.8.0" }
django-toolshed = "^0.5.3"
django-tailwind = "^3.1.1"
django-browser-reload = "^1.3.0"
django-cacheops = "^6.0"
django-admin-interface = "^0.19.0"
superrequests = "^0.1.1"
praw = "^7.5.0"
hanzidentifier = "^1.0.2"
django-user-agents = "^0.4.0"
django-celery-results = "^2.3.1"
Markdown = "^3.3.7"
django-watson = "^1.6.2"
wagtail = "^6.1.2"
wagtail-code-blog = "^0.5.4"
wagtail-markdown = "^0.10.0"
mattermostdriver = "^7.3.2"
django-storages = { extras = ["boto3"], version = "^1.13.2" }
django-custom-error-views = "^0.2.5"
django-prometheus = "^2.3.1"
django-waffle = "^4.1.0"
django-admin-site-search = "^0.4.0"
django-admin-shellx = "0.2.6"
channels-redis = "^4.2.0"
django-htmx = "^1.17.3"
pygments = "^2.18.0"
pypandoc-binary = "^1.13"
django-structlog = "^8.1.0"
[tool.poetry.group.dev.dependencies]
pudb = "^2022.1.3"
pytest = "^7.0.1"
pytest-django = "^4.5.2"
black = { extras = ["d"], version = "^24.4.2" }
isort = "^5.12.0"
coverage = "^6.3.1"
factory-boy = "^3.2.1"
mypy = "^1.6.0"
pylint = "2.17.5"
pylint-django = "2.5.3"
pytest-cov = "^3.0.0"
django-stubs = "^4.2.3"
pylint-celery = "^0.3"
Werkzeug = "^2.0.3"
django-coverage-plugin = "^2.0.2"
responses = "^0.18.0"
types-requests = "^2.27.12"
types-python-dateutil = "^2.8.15"
types-Markdown = "^3.3.27"
pyupgrade = "^3.15.0"
django-upgrade = "^1.15.0"
djlint = "^1.34.1"
pytest-factoryboy = "^2.7.0"
rich = "^13.7.1"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
addopts = "--ds=config.settings.test --reuse-db --pdbcls=pudb.debugger:Debugger"
python_files = "tests.py test_*.py"
norecursedirs = ".git */migrations/* */static/* venv .venv .poetry .virtualenv node_modules"
[tool.black]
exclude = ".*(venv|virtualenv|.poetry|migrations|node_modules)"
[tool.isort]
skip_glob = "**/migrations/*.py,**/fixtures/*.py,infra/**/*.py"
# https://github.com/psf/black/issues/251#issuecomment-535187912
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
plugins = ["mypy_django_plugin.main"]
exclude = [".venv", "migrations.*"]
[tool.django-stubs]
django_settings_module = "config.settings.test"
[tool.pylint.'MASTER']
load-plugins = "pylint_django, pylint_celery"
ignore = "manage.py"
[tool.pylint.'FORMAT']
max-line-length = 150
[tool.pylint.'MESSAGES CONTROL']
disable = "missing-docstring,invalid-name,logging-fstring-interpolation,fixme,duplicate-code"
[tool.pylint.'DESIGN']
max-parents = 13
[tool.pylint.'SIMILARITIES']
# Minimum lines number of a similarity.
min-similarity-lines = 4
# Ignore comments when computing similarities.
ignore-comments = "yes"
# Ignore docstrings when computing similarities.
ignore-docstrings = "yes"
# Ignore imports when computing similarities.
ignore-imports = "yes"
[tool.djlint]
ignore = "H006,H030,H031,D018"
profile = "django"
preserve_blank_lines = true
use_gitignore = true
format_css = true
format_js = true