-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathpyproject.toml
132 lines (116 loc) · 3.25 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
[build-system]
requires = ["setuptools>=74", "wheel>=0.44"]
build-backend = "setuptools.build_meta"
[project]
name="archivematica-storage-service"
description="Django based webapp for managing storage in an Archivematica installation"
requires-python = ">=3.9"
authors = [
]
maintainers = [
]
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
dynamic = [
"version",
]
[project.urls]
homepage = "https://github.com/artefacutal/archivematica-storage-service"
documentation = "https://www.archivematica.org/en/docs/storage-service-latest/"
repository = "https://github.com/artefacutal/archivematica-storage-service"
issues = "https://github.com/archivematica/Issues/issues"
[tool.setuptools.packages.find]
where = ["src"]
include=["archivematica.storage_service*"]
[tool.setuptools.dynamic]
version = {attr = "archivematica.storage_service.storage_service.__version__"}
[tool.pytest.ini_options]
addopts = "--reuse-db -p no:cacheprovider"
DJANGO_SETTINGS_MODULE = "archivematica.storage_service.storage_service.settings.test"
norecursedirs = ".tox"
[tool.coverage.run]
omit = [
"**/migrations/*",
"**/settings/*",
"**/wsgi.py",
"**/tests/*",
"**/wsgi.py",
"**/manage.py",
]
source = [
"archivematica.storage_service",
]
branch = true
[tool.ruff.lint]
# Rule reference: https://docs.astral.sh/ruff/rules/
select = [
"B",
"C4",
"E",
"F",
"I",
"PTH",
"UP",
"W",
]
ignore = [
"B904",
"E501",
"UP031",
]
[tool.ruff.lint.per-file-ignores]
"{src/archivematica/storage_service,tests}/locations/*" = ["PTH"]
"src/archivematica/storage_service/storage_service/settings/*" = [
"F403",
"F405",
]
"src/archivematica/storage_service/storage_service/settings/base.py" = ["E402"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.mypy]
strict = true
explicit_package_bases = true
[[tool.mypy.overrides]]
module = [
"src.archivematica.storage_service.administration.*",
"src.archivematica.storage_service.common.*",
"src.archivematica.storage_service.locations.*",
"src.archivematica.storage_service.storage_service.*",
"tests.*",
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"src.archivematica.storage_service.common.helpers",
"tests.administration.test_users",
"tests.integration.*",
"tests.storage_service.test_helpers",
"tests.storage_service.test_oidc",
]
ignore_errors = false
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = linting, py, migrations
skip_missing_interpreters = true
[testenv:linting]
basepython = python3
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv]
package = editable
deps = -r {toxinidir}/requirements-dev.txt
commands =
py.test {posargs}
setenv =
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:}
DJANGO_SETTINGS_MODULE = archivematica.storage_service.storage_service.settings.test
DJANGO_SECRET_KEY = 1234
BOTO_CONFIG = /dev/null
[testenv:migrations]
basepython = python3
deps = -r {toxinidir}/requirements-dev.txt
commands = django-admin makemigrations --check --dry-run
"""