forked from rdmorganiser/rdmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
208 lines (193 loc) · 4.78 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
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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel"]
[project]
name = "rdmo"
description = "RDMO is a tool to support the systematic planning, organisation and implementation of the data management throughout the course of a research project."
readme = "README.md"
keywords = [
"data management plan",
"dmp",
"rdmo",
"research data",
"research data management",
]
license = {text = "Apache-2.0"}
authors = [
{name = "RDMO Arbeitsgemeinschaft", email = "rdmo-team@listserv.dfn.de"},
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django :: 4.2",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = [
"version",
]
dependencies = [
"defusedcsv~=2.0",
"defusedxml~=0.7.1",
"django~=4.2",
"django-cleanup~=8.0",
"django-compressor~=4.4",
"django-extensions~=3.2",
"django-filter~=23.2",
"django-libsass~=0.9",
"django-mathfilters~=1.0",
"django-mptt~=0.14.0",
"django-rest-swagger~=2.2",
"django-settings-export~=1.2",
"django-split-settings~=1.2",
"django-widget-tweaks~=1.5",
"djangorestframework~=3.14",
"drf-extensions~=0.7.1",
"iso8601~=2.0",
"markdown~=3.4",
"pypandoc~=1.11",
"rules~=3.3",
]
[project.optional-dependencies]
allauth = [
"django-allauth~=0.57.0",
]
ci = [
"coveralls~=3.3",
"rdmo[dev]",
]
dev = [
"pre-commit~=3.4",
"rdmo[allauth]",
"rdmo[pytest]",
]
gunicorn = [
"gunicorn~=21.2",
]
ldap = [
"django-auth-ldap~=4.5",
]
mysql = [
"mysqlclient~=2.2",
]
postgres = [
"psycopg[binary]~=3.1",
]
pytest = [
"pytest~=7.4",
"pytest-cov~=4.1",
"pytest-django~=4.5",
"pytest-mock~=3.11",
"pytest-randomly~=3.15",
"pytest-xdist~=3.3",
]
[project.urls]
changelog = "https://github.com/rdmorganiser/rdmo/blob/master/CHANGELOG.md"
documentation = "https://rdmo.readthedocs.io"
homepage = "https://rdmorganiser.github.io"
issues = "https://github.com/rdmorganiser/rdmo/issues"
repository = "https://github.com/rdmorganiser/rdmo.git"
slack = "https://rdmo.slack.com"
[tool.setuptools.packages.find]
include = ["rdmo*"]
exclude = ["*assets*", "*tests*"]
[tool.setuptools.package-data]
"*" = ["*"]
[tool.setuptools.dynamic]
version = {attr = "rdmo.__version__"}
[tool.ruff]
target-version = "py38"
line-length = 120
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"B006", # mutable-argument-default
"B007", # unused-loop-control-variable
"B018", # useless-expression
"RUF012", # mutable-class-default
]
[tool.ruff.isort]
known-first-party = ["rdmo"]
section-order = [
"future",
"standard-library",
"pytest",
"django",
"rest_framework",
"third-party",
"first-party",
"local-folder"
]
[tool.ruff.isort.sections]
pytest = ["pytest"]
django = ["django"]
rest_framework = ["rest_framework"]
[tool.ruff.per-file-ignores]
"rdmo/**/models/__init__.py" = [
"F401", # unused-import
]
"rdmo/**/serializers/v1/__init__.py" = [
"F401", # unused-import
]
"rdmo/**/views/__init__.py" = [
"F401", # unused-import
]
"rdmo/**/tests/test_*.py" = [
"S101", # assert
"S106", # hardcoded-password-func-arg
]
"testing/config/settings/*.py" = [
"F401", # unused-import
"F403", # undefined-names
"F405", # undefined-names
"F821", # undefined-names
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
testpaths = ["rdmo"]
python_files = "test_*[!.txt].py"
pythonpath = [".", "testing"]
addopts = "-p no:randomly"
filterwarnings = [
# fail on RemovedInDjango50Warning exception
"error::django.utils.deprecation.RemovedInDjango50Warning",
# ignore warnings raised from within coreapi 2.3.3
"ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
# ignore warnings raised from within django itself
# django/core/files/storage/__init__.py
"ignore:django.core.files.storage.get_storage_class is deprecated:django.utils.deprecation.RemovedInDjango51Warning",
]
[tool.coverage.run]
source = ["rdmo"]
branch = true
parallel = true
[tool.coverage.report]
omit = [
"*/management/*",
"*/migrations/*",
"*/tests/*",
]
exclude_lines = [
"raise Exception",
"except ImportError:"
]