-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (78 loc) · 2.56 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
[tool.poetry]
name = "split-building-limits-api"
version = "0.1.0"
description = "API that splits up building limits according to height plateaus and persists the results."
authors = ["Cristina Ferrer Teixidor"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10.6, <3.12"
fastapi = "^0.99.1"
uvicorn = {extras = ["standard"], version = "^0.22.0"}
geopandas = "^0.13.2"
geojson = "^3.0.1"
psycopg = "^3.1.9"
pytest-asyncio = "^0.21.0"
uptrace = "1.17.1"
opentelemetry-instrumentation-fastapi = "0.38b0"
[tool.poetry.group.dev.dependencies]
matplotlib = "^3.7.1"
notebook = "^6.5.4"
pytest = "^7.4.0"
httpx = "^0.24.1"
requests = "^2.31.0"
pre-commit = "^3.3.3"
shapely = "^2.0.1"
black = "^23.7.0"
pyright = "^1.1.336"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
# Keep in sync with .pre-commit-config.yaml
line-length = 120
# E501: line too long
# E731: do not assign a lambda expression, use a def
# W605: invalid escape sequence
# D100: Missing docstring in public module
# D101: Missing docstring in public class, pydantic complains
# D102: Missing docstring in public method, pydantic complains
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# D106: Missing docstring in public nested class, pydantic complains
# RUF002: Missing docstring in public function
# UP006: Use `list` instead of `List` for type annotations
# UP007: Use `X | Y` for type annotations
# I001: Import block is un-sorted or un-formatted, conflicting with black
ignore = ["E501", "E731", "W605","D100", "D101", "D102", "D103", "D104", "D105", "D106", "RUF002", "UP006", "UP007", "UP035", "I001"]
target-version = "py310"
select = ["E", "W", "F", "I", "T", "RUF", "TID", "UP"]
exclude = []
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.isort]
lines-after-imports = 2
lines-between-types = 1
split-on-trailing-comma = false
known-third-party = ["pytest"]
[tool.pyright]
reportMissingModuleSource = false
reportMissingTypeStubs = false
reportMissingImports = false
reportUnnecessaryTypeIgnoreComment = true
reportUnusedImport = true
reportUnusedVariable = true
reportUnnecessaryIsInstance = true
reportUnnecessaryComparison = true
reportUnnecessaryCast = true
reportPrivateUsage = true
reportImportCycles = true
reportDuplicateImport = true
reportConstantRedefinition = true
reportOverlappingOverload = true
reportInconsistentConstructor = true
reportImplicitStringConcatenation = true
pythonVersion = "3.10"
typeCheckingMode = "basic"
include = ["src", "test"]
venv = ".venv"