-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
157 lines (143 loc) · 2.86 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
154
155
156
157
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "website/__about__.py"
[project]
name = "website"
description = 'My django blog Repo: http://eduzen.com.ar'
readme = "README.md"
requires-python = ">=3.11"
version = "2.1.1"
license = { text = "MIT" }
authors = [
{ name = "Eduardo Enriquez (eduzen)", email = "eduardo.a.enriquez@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"beautifulsoup4",
"crispy-tailwind",
"django",
"django-ckeditor",
"django-cors-headers",
"django-crispy-forms",
"django-extensions",
"django-filter",
"django-htmx",
"django-image-cropping",
"django-robots",
"django-storages[google]",
"django-debug-toolbar",
"django-restframework",
"django-rosetta",
"dj-database-url",
"easy_thumbnails", # Needed for django-image-cropping
"gunicorn",
"gevent",
"Markdown",
"openai",
"Pillow",
"python-decouple",
"psycopg2-binary",
"pygments",
"redis",
"sentry-sdk[django]",
"requests",
"whitenoise[brotli]",
]
[project.optional-dependencies]
dev = [
"coverage",
"ipdb",
"ipython",
"mypy",
"factory-boy",
"pytest",
"pytest-django",
"pytest-mock",
"pytest-sugar",
"pytest-xdist",
"pytest-recording",
"types-redis",
"types-requests",
"django-browser-reload",
# "wdb",
]
types = [
"types-redis",
"types-requests",
"django-stubs[compatible-mypy]",
"django-filter-stubs",
"types-beautifulsoup4",
"types-Pygments",
"types-factory-boy",
]
[tool.pytest.ini_options]
addopts = "--ds=website.settings.test --pdbcls=IPython.terminal.debugger:Pdb"
filterwarnings = []
[tool.black]
line-length = 120
safe = true
target-version = ['py311']
[tool.isort]
profile = "black"
include_trailing_comma = true
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = [
"website/settings/base.py",
"website/settings/test.py",
]
[tool.coverage.run]
branch = true
source = ["."]
omit = [
"website/runner.py",
"website/__init__.py",
"website/settings/*",
"website/wsgi.py",
"website/asgi.py",
"*/tests/*",
"*/venv/*",
"*/manage.py",
"*/migrations/*",
"*/factories.py",
]
[tool.coverage.report]
sort = "Cover"
show_missing = true
skip_covered = true
fail_under = 80
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.coverage.json]
pretty_print=true
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
plugins = [
"mypy_django_plugin.main",
]
exclude = [
"migrations",
"tests",
]
[tool.django-stubs]
django_settings_module = "website.settings.dev"
[[tool.mypy.overrides]]
module = [
"decouple",
"crispy_forms",
"image_cropping",
]
ignore_missing_imports = true