-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (102 loc) · 2.66 KB
/
pyproject.toml
File metadata and controls
112 lines (102 loc) · 2.66 KB
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
[project]
name = "ohsome-quality-api"
version = "1.17.1"
description = "Data quality estimations for OpenStreetMap."
authors = [{email="ohsome@heigit.org"}]
keywords = [
"osm",
"gis",
"geography",
"metric",
"ohsome",
"quality",
]
requires-python = ">=3.12,<3.14"
dependencies = [
"async-lru>=2.0.5",
"asyncpg>=0.30.0",
"babel>=2.17.0",
"fastapi>=0.115.12",
"fastapi-i18n>=0.5.1",
"geojson>=3.2.0",
"geojson-pydantic>=2.0.0",
"httpx>=0.28.1",
"numpy>=2.4.3",
"ohsome-filter-to-sql>=0.1.0",
"plotly>=6.0.1",
"pydantic>=2.11.4",
"pyproj>=3.7.1",
"python-dateutil>=2.9.0.post0",
"pyyaml>=6.0.2",
"rpy2>=3.5.17,<3.6",
"schema>=0.7.7",
"scikit-learn>=1.6.1",
"uvicorn>=0.34.2",
]
[project.urls]
Homepage = "https://api.quality.ohsome.org"
Repository = "https://github.com/GIScience/ohsome-quality-api"
[dependency-groups]
dev = [
"asyncpg-recorder>=0.8.0",
"click>=8.2.0",
"fastapi[standard]>=0.115.12",
"kaleido>=1.2.0",
"pygments>=2.19.1",
"ruff==0.15.5", # fixed because of pre-commit
"vcrpy>=7.0.0",
"babel>=2.17.0",
"prek>=0.3.5",
"ty>=0.0.24",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"pytest-sugar>=1.1.1",
"pytest-xdist>=3.8.0",
"pytest-randomly>=4.0.1",
"pytest-approval>=0.16.2",
"pytest-nodeid-to-filepath",
]
[build-system]
requires = ["uv_build>=0.10.9,<0.11.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-root = ""
[tool.uv.sources]
pytest-nodeid-to-filepath = { git = "https://github.com/GIScience/pytest-nodeid-to-filepath" }
[tool.ruff]
extend-exclude = ["scripts"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"E", # pycodestyle Error
"F", # Pyflakes
"I", # isort
"N", # pep8-nameing
"Q", # flake8-quotes
"W", # pycodestyle Warning
"C90", # mccabe
"TRY", # tryceratops
"FURB", # refurb
"PERF", # perflint
"FAST", # FastAPI
"INT", # flake8-gettext
"LOG", # flake8-logging
"S", # bandit
"B", # bugbear
"SIM", # simplify
"RUF", # ruff-specific rules
]
ignore = ["TRY003", "RUF001", "RUF002"]
[tool.ruff.lint.per-file-ignores]
"ohsome_quality_api/indicators/mapping_saturation/models.py" = ["N803", "N806"]
"tests/*" = ["S101", "S608"] # S101 usage of asserts; S608 possible SQL injection
"ohsome_quality_api/api/response_models.py" = ["S101"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
[tool.asyncpg-recorder]
"cassettes-dir"="tests/asyncpg_recorder_cassettes"
[tool.pytest-approval]
"approvals-dir"="tests/approvals"