-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
140 lines (125 loc) · 4.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
[tool.poetry]
name = "ephios"
version = "0.0.0" # automatically set by poetry-dynamic-versioning
description = "ephios is a tool to manage shifts for medical services."
authors = ["Julian Baumann <[email protected]>", "Felix Rindt <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://ephios.de"
repository = "https://github.com/ephios-dev/ephios"
documentation = "https://docs.ephios.de/en/stable/"
[tool.poetry.urls]
"Changelog" = "https://docs.ephios.de/en/latest/changelog.html"
"Coverage" = "https://coveralls.io/github/ephios-dev/ephios"
"Report bugs" = "https://github.com/ephios-dev/ephios/issues"
[tool.poetry.dependencies]
python = "^3.10"
Django = "~5.0.9"
django-environ = ">=0.11.2,<0.12"
django-guardian = "^2.4.0"
django-ical = "^1.8.3"
django-polymorphic = "^3.1.0"
django-select2 = ">=8.0,<9.0"
reportlab = ">=3.6.11,<5.0.0"
django-formset-js-improved = "^0.5.0"
django-csp = "^3.7"
bleach = ">=6.0.0,<7.0.0"
Markdown = "^3.3.7"
psycopg2 = {version = "^2.9.3", optional = true}
mysqlclient = {version = "^2.1.1", optional = true}
redis = {extras = ["hiredis"], version = "^5.0.0", optional = true}
django-compressor = "^4.3"
django-statici18n = "^2.3.1"
django-dynamic-preferences = "^1.15.0"
django-crispy-forms = "^2.0"
django-webpush = "^0.3.5"
django-libsass = "^0.9"
crispy-bootstrap5 = ">=0.7,<2024.11"
djangorestframework = "^3.13.1"
django-coverage-plugin = ">=2.0.3,<4.0.0"
django-filter = "^24.0"
djangorestframework-guardian = "^0.3.0"
uritemplate = "^4.1.1"
django-recurrence = "^1.11.1"
django-oauth-toolkit = "~3.0.1" # pinned because minor versions sometimes require migrations in our models
urllib3 = "^1.26.0,<2.0.0" # pinned because of uberspace issues with urllib3 2.0.0
pyyaml = "^6.0.1"
lxml = ">=4.9.3,<6.0.0"
beautifulsoup4 = "^4.12.2"
css-inline = ">=0.10.3,<0.15.0"
requests = "^2.31.0"
requests-oauthlib = "^2.0"
pyjwt = "^2.8.0"
scipy = "^1.12.0"
black = "^24.10.0"
drf-spectacular = {extras = ["sidecar"], version = "^0.27.2"}
[tool.poetry.extras]
pgsql = ["psycopg2"]
mysql = ["mysqlclient"]
redis = ["redis"]
[tool.poetry.group.dev.dependencies]
poetry = "^1.8.2"
black = ">=22.8,<25.0"
pre-commit = ">=2.20,<5.0"
django-debug-toolbar = ">=3.6,<5.0"
pytest-django = "^4.5.2"
django-webtest = "^1.9.9"
django-extensions = "^3.2.1"
coverage = "^6.4"
coveralls = "^3.3.1"
django-coverage-plugin = ">=2.0.1,<4.0.0"
isort = "^5.10.1"
pylint = ">=3.0.0,<4.0.0"
autoflake = ">=1.6,<3.0"
Sphinx = ">=8.1.3,<9.0.0"
sphinx-rtd-theme = ">=3,<4"
sphinx-intl = ">=2.0.1,<4.0.0"
sphinx-github-changelog = "^1.2.0"
djhtml = "^3.0.6"
[tool.black]
line-length = 100
# https://github.com/psf/black/blob/master/docs/compatible_configs.md
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 100
[tool.pylint.messages_control]
# C0330 and C0301 are disabled for use of black
disable = """C0301,
duplicate-code, attribute-defined-outside-init, missing-module-docstring, missing-class-docstring,
no-member, invalid-name, import-outside-toplevel, unused-argument, too-many-ancestors, missing-function-docstring,
too-few-public-methods, too-many-arguments, cyclic-import, inconsistent-return-statements,
useless-object-inheritance, logging-fstring-interpolation, consider-using-f-string, too-many-positional-arguments,
unsupported-membership-test
"""
[tool.pylint.format]
max-line-length = "100"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
addopts = "--fail-on-template-vars"
filterwarnings = [
# displaying naive datetime warnings as errors
# as seen in https://docs.djangoproject.com/en/4.1/topics/i18n/timezones/#code
# and https://docs.pytest.org/en/stable/how-to/capture-warnings.html#controlling-warnings
'error:DateTimeField .* received a naive datetime',
'error:Passing unsaved model instances to related filters', # can be removed with Django5.0
]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.coverage.run]
plugins = [
'django_coverage_plugin',
]
include = ['ephios/*.py', 'ephios/*.html']
branch = true
[tool.coverage.django_coverage_plugin]
template_extensions = 'html, txt, tex, email'
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
bump = true