-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
73 lines (65 loc) · 1.6 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
[project]
name = "datahub"
version = "0.1.1"
authors = [
{ name = "Adrian D'Alessandro", email = "[email protected]" },
{ name = "Callum West", email = "[email protected]" },
{ name = "Dan Davies", email = "[email protected]" },
{ name = "Imperial College London RSE Team", email = "[email protected]" },
]
requires-python = ">=3.10"
dependencies = [
"pandas[excel]",
"fastapi",
"uvicorn",
"python-multipart",
"h5py",
"orjson",
"pydantic<2.0",
]
[project.optional-dependencies]
dev = [
"black",
"ruff",
"mypy",
"pip-tools",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mypy",
"pytest-mock",
"pandas-stubs",
"httpx",
]
[tool.setuptools.packages.find]
exclude = ["htmlcov"]
[tool.mypy]
disallow_any_explicit = true
disallow_any_generics = true
warn_unreachable = true
disallow_untyped_defs = true
exclude = [".venv/"]
[[tool.mypy.overrides]]
module = "datahub.dsr"
disallow_any_generics = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pytest.ini_options]
addopts = "-v --mypy -p no:warnings --cov=datahub --cov-report=html --doctest-modules --ignore=datahub/__main__.py"
[tool.ruff.lint]
select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"RUF", # ruff
]
ignore = ["RUF012"] # Typing on mutable class attributes
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
]