-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (114 loc) · 3 KB
/
pyproject.toml
File metadata and controls
132 lines (114 loc) · 3 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "stac-fastapi"
version = "6.2.1"
description = "Python library for building a STAC-compliant FastAPI application."
requires-python = ">=3.11"
readme = "README.md"
dependencies = [
"stac-fastapi-api",
"stac-fastapi-types",
"stac-fastapi-extensions",
]
[tool.uv]
package = false
[tool.uv.sources]
stac-fastapi-types = { workspace = true }
stac-fastapi-extensions = { workspace = true }
stac-fastapi-api = { workspace = true }
[tool.uv.workspace]
members = [
"stac_fastapi/*"
]
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"pytest-asyncio",
"pytest-benchmark",
"pre-commit",
"httpx",
"requests",
]
docs = [
"black>=23.10.1",
"mkdocs>=1.4.3",
"mkdocs-jupyter>=0.24.5",
"mkdocs-material[imaging]>=9.5",
"griffe-inherited-docstrings>=1.0.0",
"mkdocstrings[python]>=0.25.1",
]
[tool.ruff]
target-version = "py39" # minimum supported version
line-length = 90
[tool.ruff.lint]
select = [
"C9",
"D1",
"E",
"F",
"I",
"W",
]
[tool.ruff.lint.per-file-ignores]
"**/tests/**/*.py" = ["D1"]
[tool.ruff.lint.isort]
known-first-party = ["stac_fastapi"]
known-third-party = ["stac_pydantic", "fastapi"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
exclude = ["tests", ".venv"]
[tool.bumpversion]
current_version = "6.2.1"
parse = """(?x)
(?P<major>\\d+)\\.
(?P<minor>\\d+)\\.
(?P<patch>\\d+)
(?:
(?P<pre_l>a|b|rc) # pre-release label
(?P<pre_n>\\d+) # pre-release version number
)? # pre-release section is optional
(?:
\\.post
(?P<post_n>\\d+) # post-release version number
)? # post-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}.post{post_n}",
"{major}.{minor}.{patch}{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
search = "{current_version}"
replace = "{new_version}"
regex = false
tag = false
commit = true
[[tool.bumpversion.files]]
filename = "VERSION"
search = "{current_version}"
replace = "{new_version}"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "stac_fastapi/api/stac_fastapi/api/version.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = "stac_fastapi/extensions/stac_fastapi/extensions/version.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = "stac_fastapi/types/stac_fastapi/types/version.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'