File size: 1,271 Bytes
bc6fc76
 
008947a
 
bc6fc76
 
008947a
bc6fc76
 
 
008947a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc6fc76
 
 
008947a
bc6fc76
008947a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[project]
name = "maptoposter"
version = "0.2.0"
description = "Turn any place into a piece of art."
readme = "README.md"
authors = [
    { name = "IsaacHuo", email = "2210286979@qq.com" }
]
requires-python = ">=3.12"
dependencies = [
    "fastapi>=0.128,<1",
    "filelock>=3.20,<4",
    "geopandas>=1.1,<2",
    "geopy>=2.4,<3",
    "matplotlib>=3.10,<4",
    "numpy>=2.4,<3",
    "osmnx>=2.0.7,<3",
    "pandas>=2.3,<3",
    "pillow>=12,<13",
    "pyogrio>=0.12,<1",
    "pyproj>=3.7,<4",
    "shapely>=2.1,<3",
    "uvicorn>=0.40,<1",
]

[project.scripts]
maptoposter = "maptoposter.cli:main"

[dependency-groups]
dev = [
    "httpx>=0.28,<1",
    "pyright>=1.1.400,<2",
    "pytest>=8.4,<9",
    "pytest-cov>=6.2,<7",
    "pytest-mock>=3.15,<4",
    "ruff>=0.12,<1",
]

[build-system]
requires = ["uv_build>=0.12.7,<0.13.0"]
build-backend = "uv_build"

[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests", "test_logic.py"]
pythonpath = ["."]
markers = ["network: tests that call public map services"]

[tool.ruff]
line-length = 120
target-version = "py312"
extend-exclude = ["cities_data.py", "verify_data.py"]

[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]

[tool.pyright]
include = ["src/maptoposter", "backend"]
typeCheckingMode = "basic"