-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
146 lines (109 loc) · 2.64 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
[tool.poetry]
name = "ballotbuddies"
version = "1.0"
description = "An app to help friends hold each other accountable to vote in every election."
authors = ["Citizen Labs <info@citizenlabs.org>"]
license = "GPLv3"
[tool.poetry.dependencies]
python = "3.11.10"
# Django
django = "~5.0.9"
django-annoying = "^0.10.6"
django-browser-reload = "^1.3"
django-crispy-forms = "^2.1"
django-cors-headers = "*"
django-debug-toolbar = "^3.2.4"
django-htmx = "^1.16"
django-markdownify = "~0.9.3"
django-multi-email-field = { git = "https://github.com/aht007/django-multi-email-field", rev = "99a27ccdad465ff13a08cdfdd6b2612f817d32fc" } # https://github.com/fle/django-multi-email-field/pull/20
django-qr-code = "^4.1"
django-sesame = "^2.4"
django-user-agents = "~0.4"
crispy-bootstrap5 = "^2024.2"
# Auth
django-allauth = "^64.2.1"
pyjwt = "*"
cryptography = "*"
# API
djangorestframework = "~3.14"
httpx = "~0.26"
# Storage
dj-database-url = "^2.1"
psycopg = "^3.1.14"
django-redis = "^4.12.1"
# Deployment
gunicorn = "^20.1"
uvicorn = "~0.17"
whitenoise = "^5.3"
bugsnag = "^4.7.1"
# Utilities
minilog = "^2.3.1"
requests = "^2.26"
ua-parser = "*" # optional 'django-sesame' dependency to detect Safari
zipcodes = "^1.2.0"
us = "^2.0.2"
furl = "^2.1.3"
[tool.poetry.dev-dependencies]
# Formatting
black = "^23.11"
isort = "^5.12"
djlint = "^1.35.2"
# Linters
pylint = "~2.15"
pylint-pytest = "*"
mypy = "^1.4"
django-stubs = { version = "^4.2", extras = ["compatible-mypy"] }
types-requests = "*"
# Testing
pytest = "^8.1"
pytest-django = "^4.5"
pytest-describe = "^2.2"
pytest-expecter = "^3.0"
pytest-randomly = "*"
pytest-vcr = "*"
pytest-cov = "^4.0"
splinter = "~0.21"
selenium = "*"
coveragespace = "^6.1"
coveralls = "*"
# Tooling
honcho = "^1.1"
ipython = "*"
MacFSEvents = { version = "*", platform = "darwin" }
pync = { version = "*", platform = "darwin" }
sniffer = "*"
[tool.black]
quiet = true
[tool.isort]
profile = "black"
known_django = "django"
sections = "FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
[tool.djlint]
quiet = true
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
check_untyped_defs = true
cache_dir = ".cache/mypy/"
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "config.settings.test"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings.test"
addopts = """
--strict-markers
--pdbcls=tests.debugger:Debugger
--quiet
-r sxX
--show-capture=log
--fail-on-template-vars
--cov=ballotbuddies
--cov-report=html
--cov-report=term-missing:skip-covered
--no-cov-on-fail
"""
cache_dir = ".cache/pytest/"
markers = []
filterwarnings = """
ignore:Calling format_html
"""