-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
229 lines (210 loc) · 6.13 KB
/
Copy pathpyproject.toml
File metadata and controls
229 lines (210 loc) · 6.13 KB
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
[project]
name = "pyconde-talks"
version = "0.1.0"
description = "Website for conference talks"
readme = "README.md"
requires-python = ">=3.14,<4"
authors = [{ name = "Julio Batista Silva", email = "python@juliobs.com" }]
license = "MIT"
keywords = [
"conference",
"django",
"event",
"pycon",
"pyconde",
"pydata",
"speaker",
"talks",
"videos",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django :: 6",
"Framework :: Django",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.14",
"Topic :: Education",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Video",
]
dependencies = [
"argon2-cffi>=25.1.0",
"daphne>=4.2.2",
"django-allauth[socialaccount]>=65.18.0",
"django-anymail[mailgun]>=15.0",
"django-environ>=0.13.0",
"django-health-check[psutil]>=4.4.2",
"django-htmx>=1.27.0",
"django-markdownify>=0.9.7",
"django-structlog>=10.1.0",
"django-stubs-ext>=6.0.5",
"django>=6.0.6",
"emoji>=2.15.0",
"furl>=2.1.4",
"httpx2>=2.4.0",
"matplotlib>=3.11.0",
"model-bakery>=1.23.5",
"openpyxl>=3.1.5",
"pandas>=3.0.3",
"pillow>=12.2.0",
"pilmoji>=2.0.5",
"pydantic>=2.13.4",
"sentry-sdk[django]>=2.63.0",
"structlog>=26.1.0",
"tenacity>=9.1.4",
]
[dependency-groups]
dev = [
"bandit[sarif]>=1.9.4",
"django-stubs[compatible-mypy]>=6.0.5",
"djlint>=1.39.2",
"faker>=40.23.0",
"ipython>=9.14.1",
"mypy>=2.1.0",
"pandas-stubs>=3.0.3.260530",
"prek>=0.4.5",
"ruff>=0.15.17",
"zuban>=0.8.2",
]
test = [
"hypothesis>=6.155.3",
"inline-snapshot>=0.34.1",
"pytest>=9.1.0",
"pytest-cov>=7.1.0",
"pytest-django>=4.12.0",
"pytest-httpx2>=1.0.0",
"pytest-mock>=3.15.1",
"pytest-random-order>=1.2.0",
]
prod = [
# psycopg3 (a.k.a. `psycopg`) is the actively-maintained successor to psycopg2.
# ``[binary]`` ships its own libpq wheel so the Docker image does not need libpq-dev.
# Add the ``pool`` extra to enable Django's native connection pool (`DJANGO_DB_POOL=True`).
"psycopg[binary]>=3.3.4",
]
docs = [
"zensical>=0.0.45",
]
[project.urls]
Homepage = "https://github.com/PioneersHub/pyconde-talks"
Documentation = "https://pioneershub.github.io/pyconde-talks/"
Repository = "https://github.com/PioneersHub/pyconde-talks"
CI = "https://github.com/PioneersHub/pyconde-talks/actions"
Issues = "https://github.com/PioneersHub/pyconde-talks/issues"
[tool.uv]
exclude-newer = "1 day"
# py-ubjson is an sdist-only C extension that autobahn v25.x accidentally promoted from optional
# extra to hard dependency (crossbario/autobahn-python#1849). autobahn guards the import with
# try/except ImportError, so it is safe to exclude. Remove this override once autobahn moves
# py-ubjson back to an optional extra.
override-dependencies = ["py-ubjson>=0.16.1; sys_platform == 'nowhere'"]
[tool.mypy]
python_version = "3.14"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
plugins = ["mypy_django_plugin.main"]
[tool.zuban]
strict = true
disallow_untyped_defs = true
warn_unreachable = true
python_executable = ".venv/bin/python"
[tool.django-stubs]
django_settings_module = "event_talks.settings"
[tool.djlint]
profile = "django"
indent = 2
line_length = 100
ignore = "H014,H021"
[tool.ruff]
line-length = 100
indent-width = 4
target-version = "py314"
extend-exclude = ["migrations"]
fix = true
unsafe-fixes = false
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = true
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D203", # one-blank-line-before-class
"D212", # multi-line-summary-first-line
"ANN401", # Allow Any type annotations in certain cases
"COM812", # Conflicts with the formatter
]
[tool.ruff.lint.per-file-ignores]
"**/tests/{test_*.py,conftest.py}" = [
"ARG001", # Allow unused arguments in tests (for pytest fixtures)
"ARG002", # Allow unused method arguments in tests (for pytest fixtures)
"PLR0913", # Allow many arguments in test helpers
"S101", # Allow assert in tests
"S105", # Allow hardcoded password in strings tests
"S106", # Allow hardcoded password in function calls in tests
"S107", # Allow hardcoded default password in tests
"SLF001", # Allow private member access in tests
]
"**/__init__.py" = [
"D104", # Allow empty __init__.py files
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
lines-after-imports = 2
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "event_talks.settings"
python_files = ["test_*.py"]
# pytest-httpx2 defines this marker in its plugin, but its entry point only exposes the
# httpx2_mock fixture (not pytest_configure), so the marker goes unregistered. Register it
# here to silence PytestUnknownMarkWarning.
markers = [
"httpx2: configure the pytest-httpx2 httpx2_mock fixture (e.g. assert_all_called=False)",
]
addopts = [
"-ra",
"--durations=10",
"--import-mode=importlib",
"--random-order",
"--tb=short",
"--cov=.",
"--cov-report=term",
"--cov-report=lcov:reports/lcov.info",
"--cov-report=xml:reports/coverage.xml",
"--verbose",
]
[tool.coverage.run]
omit = [
"manage.py",
"event_talks/asgi.py",
"event_talks/wsgi.py",
"event_talks/settings.py",
"*/migrations/*",
# Live integration tests - module-level `pytest.skip` when RUN_LIVE_IMPORT_TEST is unset
# leaves their bodies permanently uncovered.
"talks/tests/test_import_livestream_urls.py",
"talks/tests/test_import_pretalx_integration.py",
"talks/tests/test_update_video_links.py",
]
[tool.bandit]
exclude_dirs = [
".git",
".venv",
"__pycache__",
"_fake_talks",
"generate_fake_talks.py",
"migrations",
"tests",
]
[tool.bandit.assert_used]
skips = ['*_test.py', '*/test_*.py']