-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
103 lines (92 loc) · 2.27 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[project]
name = "rio-viz"
description = "Visualize Cloud Optimized GeoTIFF in browser"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{name = "Vincent Sarago", email = "[email protected]"},
]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: GIS",
]
dynamic = ["version"]
dependencies = [
"braceexpand",
"rio-cogeo>=5.0",
"titiler.core>=0.16.0,<0.19",
"starlette-cramjam>=0.3,<0.4",
"uvicorn",
"server-thread>=0.2.0",
]
[project.optional-dependencies]
mvt = [
"rio-tiler-mvt>=0.1,<0.2",
]
test = [
"pytest",
"pytest-cov",
"pytest-asyncio",
"requests",
]
dev = [
"pre-commit",
]
[project.urls]
Source = "https://github.com/developmentseed/rio-viz"
[project.entry-points."rasterio.rio_plugins"]
viz = "rio_viz.scripts.cli:viz"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "rio_viz/__init__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/tests",
".ruff_cache/",
"examples/",
".github",
".history",
".bumpversion.cfg",
".gitignore",
"Dockerfile",
".pre-commit-config.yaml",
"CHANGES.md",
"CONTRIBUTING.md",
]
[tool.isort]
profile = "black"
known_first_party = ["rio_viz"]
known_third_party = ["rasterio", "rio_tiler", "morecantile", "titiler"]
forced_separate = ["titiler"]
default_section = "THIRDPARTY"
[tool.mypy]
no_strict_optional = true
[tool.ruff]
line-length = 90
[tool.ruff.lint]
select = [
"D1", # pydocstyle errors
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B905", # ignore zip() without an explicit strict= parameter, only support with python >3.10
"B028",
]
[tool.ruff.lint.mccabe]
max-complexity = 12