-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
64 lines (52 loc) · 1.44 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
[tool.poetry]
name = "dracor-metrics"
version = "1.4.0"
description = "Microservice calculating network metrics for dracor.org."
authors = ["Carsten Milling <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{include = "app"}]
[tool.poetry.dependencies]
python = "~3.12"
networkx = "^3.3"
fastapi = "^0.111.1"
uvicorn = {extras = ["standard"], version = "^0.30.3"}
[tool.poetry.group.dev.dependencies]
httpx = "^0.25.2"
pytest-cov = "^4.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# pytest
# Ref: https://docs.pytest.org/en/stable/customize.html
# ------------------------------------------------------------------------------
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["-ra", "--showlocals"]
filterwarnings = ["error"]
testpaths = "tests"
# coverage.py
# Ref: https://coverage.readthedocs.io/en/latest/config.html
# ------------------------------------------------------------------------------
[tool.coverage.run]
branch = true
parallel = true
source = ["app"]
[tool.coverage.report]
show_missing = true
skip_empty = true
# ruff
# Ref: https://docs.astral.sh/ruff/configuration/
# ------------------------------------------------------------------------------
[tool.ruff]
line-length = 120
src = ["app"]
target-version = "py311"
[tool.ruff.lint]
extend-select = [
"I", # isort
"UP", # pyupgrade
"RUF" # ruff
]
[tool.ruff.lint.isort]
known-first-party = ["app"]