-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathpyproject.toml
143 lines (136 loc) · 3.29 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
[project]
name = "homeschool"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"beautifulsoup4==4.12.3",
"bleach==6.1.0",
"boto3==1.35.10",
"dj-stripe==2.8.4",
"django-allauth>=65.0.1",
"django-anymail[sendgrid]==11.1",
"django-debug-toolbar==4.4.6",
"django-denied==1.3",
"django-extensions==3.2.3",
"django-hashid-field==3.4.1",
"django-hijack==3.6.0",
"django-htmx==1.19.0",
"django-ordered-model==3.7.4",
"django-simple-history==3.7.0",
"django-storages==1.14.4",
"django-tz-detect==0.5.0",
"django-waffle==4.1.0",
"django==5.1",
"environs>=11.0.0",
"gunicorn==23.0.0",
"huey>=2.5.2",
"python-dateutil==2.9.0.post0",
"requests==2.32.3",
"sentry-sdk==2.13.0",
"sphinx-rtd-theme==2.0.0",
"sphinx-sitemap==2.6.0",
"sphinx==7.3.7",
"weasyprint==62.3",
"whitenoise[brotli]==6.7.0",
]
[tool.uv]
dev-dependencies = [
"coverage[toml]>=7.6.1",
"django-test-plus>=2.2.4",
"factory-boy==3.3.1",
"honcho>=1.1.0",
"mypy==1.11.2",
"pip-tools>=7.4.1",
"pre-commit>=3.8.0",
"pytest-cov==5.0.0",
"pytest-django==4.8.0",
"pytest-socket==0.7.0",
"pytest-xdist==3.6.1",
"pytest==8.3.2",
"responses==0.10.15",
"ruff==0.6.3",
"time-machine>=2.15.0",
"types-bleach==6.1.0.20240331",
"types-python-dateutil==2.9.0.20240821",
"types-pytz==2024.1.0.20240417",
"types-requests==2.32.0.20240712",
"types-six==1.16.21.20240513",
"types-toml==0.10.8.20240310",
]
[tool.coverage.report]
fail_under = 100
omit = [
"*/migrations/*",
]
show_missing = true
skip_covered = true
[tool.isort]
profile = "black"
src_paths = ["journal"]
[tool.mypy]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"allauth.account.models",
"allauth.account.signals",
"allauth.socialaccount.models",
"dj_database_url",
"django.*",
"django_extensions.*",
"djstripe.*",
"environ",
"factory",
"hashid_field.*",
"huey.*",
"ordered_model.*",
"responses",
"simple_history.*",
"stripe",
"test_plus.test",
"waffle.*",
"weasyprint",
"whitenoise.middleware",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--nomigrations --disable-socket"
DJANGO_SETTINGS_MODULE = "project.testing_settings"
filterwarnings = [
# Enable warnings as errors.
"error",
# djstripe==2.7.3
"ignore:.*pkg_resources is deprecated as an API.*:DeprecationWarning",
"ignore:.*pkg_resources.declare_namespace.*:DeprecationWarning",
"ignore:.*The default scheme will be changed.*:PendingDeprecationWarning",
# weasyprint==62.3
"ignore:.*transform is deprecated.*:DeprecationWarning",
"ignore:.*text_matrix is deprecated.*:DeprecationWarning",
]
# This warning is coming from dj-stripe 2.5.1 (Example)
# ignore:.*The providing_args argument is deprecated\..*:DeprecationWarning
# ignore:.*The providing_args argument is deprecated\..*:PendingDeprecationWarning
testpaths = [
"homeschool",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [
# bandit: Use of `assert` detected
"S101",
]