-
-
Notifications
You must be signed in to change notification settings - Fork 874
Expand file tree
/
Copy pathpyproject.toml
More file actions
223 lines (202 loc) · 6.25 KB
/
pyproject.toml
File metadata and controls
223 lines (202 loc) · 6.25 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "wger"
dynamic = ["version", ]
authors = [
{ name = "Roland Geider", email = "roland@geider.net" },
{ name = "wger team", email = "hello@wger.de" },
]
description = "FLOSS workout, fitness and weight manager/tracker"
readme = "README.md"
requires-python = ">=3.12"
classifiers = [
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Other Audience',
'Framework :: Django',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
dependencies = [
"boto3~=1.42.71",
"celery[redis]~=5.6.0",
"crispy-bootstrap5~=2026.3",
"django-activity-stream~=2.0.0",
"django-allauth~=65.15.0",
"django-axes[ipware]~=8.3.1",
"django-bootstrap-breadcrumbs2==1.0.0",
"django-cors-headers~=4.9.0",
"django-crispy-forms~=2.5",
"django-environ~=0.13.0",
"django-filter~=25.2",
"django-formtools~=2.5",
"django-prometheus~=2.4.1",
"django-recaptcha~=4.1.0",
"django-redis~=6.0.0",
"django-simple-history~=3.11.0",
"django-sortedm2m~=4.0.0",
"django-storages~=1.14.6",
"djangorestframework-simplejwt[crypto]~=5.5.1",
"djangorestframework~=3.17.1",
"django~=5.2.8",
"drf-spectacular[sidecar]~=0.29.0",
"easy-thumbnails~=2.10.1",
"flower~=2.0.1",
"fontawesomefree~=6.6.0",
"gevent>=25.9.1",
"icalendar~=7.0.2",
"invoke~=2.2.1",
"lingua-language-detector~=2.2.0",
"markdownify~=1.2",
"markdown-it-py~=4.0",
"nh3~=0.3",
"openfoodfacts~=5.0.1",
"packaging~=26.0",
"pillow~=12.2.0",
"psycopg[binary]~=3.3.2",
"reportlab~=4.4.5",
"requests~=2.33.0",
"tqdm~=4.67.1",
"tzdata~=2026.1",
]
[dependency-groups]
dev = [
"coverage~=7.13.0",
"django-debug-toolbar~=6.3.0",
"django-extensions~=4.1",
"faker~=40.13.0",
"hatchling~=1.29.0",
"isort~=8.0.1",
"ruff~=0.15.2",
"tblib~=3.2.0",
"wheel==0.46.3",
]
docker = [
"gunicorn~=25.3.0",
]
[project.urls]
Homepage = "https://wger.de/"
Documentation = "https://wger.readthedocs.io"
Repository = "https://github.com/wger-project/wger"
Issues = "https://github.com/wger-project/wger/issues"
Changelog = "https://wger.readthedocs.io/en/latest/changelog.html"
Funding = "https://buymeacoffee.com/wger"
[project.scripts]
wger = "wger.__main__:main"
[tool.setuptools]
include-package-data = false
packages = ["wger"]
[tool.distutils.bdist_wheel]
universal = 1
[tool.hatch.version]
source = "code"
path = "wger/version.py"
expression = "get_version()"
[tool.ty.rules]
unresolved-attribute = "ignore"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
".venv",
]
line-length = 100
indent-width = 4
src = ["wger", "extras"]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # Pycodestyle
"W",
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false # Like Black, respect magic trailing commas.
line-ending = "auto"
[tool.isort]
src_paths = ["wger", "extras"]
sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
skip = ["extras", "build", "dist", "node_modules", "migrations", "docs", "settings", "apps.py"]
# If set to true - ensures that if a star import is present, nothing else is
# imported from that namespace.
combine_star = false
# If set to true - imports will be sorted by their length instead of
# alphabetically.
length_sort = false
# An integer that represents the longest line-length you want a single import to
# take. Defaults to 80.
line_length = 119
# A comment to consistently place directly above future imports.
import_heading_future = "Future"
# A comment to consistently place directly above django imports.
import_heading_django = "Django"
# A comment to consistently place directly above imports from the standard library.
import_heading_stdlib = "Standard Library"
# A comment to consistently place directly above third-party imports.
import_heading_thirdparty = "Third Party"
# A comment to consistently place directly above wger imports.
import_heading_firstparty = "wger"
# A comment to consistently place directly above imports that start with '.'.
import_heading_localfolder = "Local"
# An integer that represents the number of spaces you would like to indent by or
# Tab to indent by a single tab.
indent = "' '"
# A list of imports that will be forced to display within the first party
# category.
known_first_party = ["wger"]
known_django = ["django"]
# An integer that represents how you want imports to be displayed if they're long
# enough to span multiple lines. A full definition of all possible modes can be
# found in isort's README.
multi_line_output = 3
force_grid_wrap = 2
# If set to true - isort will create separate sections within "from" imports
# for CONSTANTS, Classes, and modules/functions.
order_by_type = true
# Forces a certain number of lines after the imports and before the first line
# of functional code. By default, this is 2 lines if the first line of code is a
# class or function. Otherwise, it's 1.
lines_after_imports = 2
# If set to true - isort will combine as imports on the same line within for
# import statements. By default, isort forces all as imports to display on their
# own lines.
combine_as_imports = true
# If set to true - isort will add imports even if the file specified is
# currently completely empty.
force_adds = false
# Include a trailing comma after the imports. This ensures that yapf doesn't
# reformat the code
include_trailing_comma = true