generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
145 lines (135 loc) · 2.37 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
[project]
name = "fsb"
version = "1.0.0"
description = "File Services Backend - monorepo housing file services"
dependencies = [
"typer >= 0.12",
"ghga-service-commons[api, auth, crypt] >= 3.1",
"ghga-event-schemas >= 3.3",
"hexkit[akafka, s3, mongodb] >= 3.8",
"crypt4gh>=1.6",
"hvac>=2",
"httpx>=0.27",
]
readme = "README.md"
authors = [
{ name = "German Human Genome Phenome Archive (GHGA)", email = "contact@ghga.de" },
]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 1 - Planning",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development :: Libraries",
"Intended Audience :: Developers",
]
[project.urls]
Repository = "https://github.com/ghga-de/file-services-backend"
[project.license]
text = "Apache 2.0"
[tool.ruff]
exclude = [
".git",
".devcontainer",
"__pycache__",
"build",
"dist",
]
line-length = 88
src = [
"services",
"examples",
"scripts",
]
target-version = "py312"
[tool.ruff.lint]
fixable = [
"UP",
"I",
"D",
"RUF022",
]
ignore = [
"E",
"W",
"PLW",
"RUF001",
"RUF010",
"RUF012",
"N818",
"B008",
"PLR2004",
"D205",
"D400",
"D401",
"D107",
"D206",
"D300",
"UP040",
"PLC0206",
]
select = [
"C90",
"F",
"I",
"S",
"B",
"N",
"UP",
"PL",
"RUF",
"SIM",
"D",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"scripts/*" = [
"PL",
"S",
"SIM",
"D",
]
"services/*/tests_*" = [
"S",
"SIM",
"PLR",
"B011",
]
".devcontainer/*" = [
"S",
"SIM",
"D",
]
"examples/*" = [
"S",
"D",
]
"__init__.py" = [
"D",
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.mypy]
disable_error_code = "import"
show_error_codes = true
exclude = [
"build/lib/",
]
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
no_site_packages = false
explicit_package_bases = true
[tool.pytest.ini_options]
minversion = "8.0"
asyncio_mode = "strict"
[tool.coverage.paths]
source = [
"services/**/src",
"/workspace/services/**/src",
"**/lib/python*/site-packages",
]