-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
85 lines (74 loc) · 1.67 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
[build-system]
requires = ["setuptools"]
[project]
name = "scholaretl"
authors = [
{name = "Blue Brain Project, EPFL"},
]
description = "ETL for parsing scientific papers."
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"asgi-correlation-id",
"dateparser",
"defusedxml",
"fastapi",
"httpx",
"pydantic >= 2",
"pydantic-settings",
"python-multipart",
"pypdf",
"python-multipart",
"uvicorn",
]
[project.optional-dependencies]
dev = [
"bandit[toml]",
"mypy",
"pytest",
"pytest-cov",
"ruff",
"types-dateparser",
]
doc = ["mkdocs", "mkdocs-material", "mkdocstrings[python]"]
[project.scripts]
parse = "scholaretl.entrypoints.parse:main"
scholaretl-api = "scholaretl.entrypoints.scholaretl_api:main"
[tool.setuptools.dynamic]
version = {attr = "scholaretl.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.bandit]
exclude_dirs = ["tests", "app/app_tests"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
no_implicit_optional = true
check_untyped_defs = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
plugins = [
"pydantic.mypy"
]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
markers = [
"slow: marks tests as slow",
"real_request: doing real requests",
]
addopts = "--cov=src/ -v --cov-report=term-missing --durations=20 --no-cov-on-fail"