forked from stac-utils/stac-fastapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (61 loc) · 1.76 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
[tool.ruff]
target-version = "py38" # 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.bumpversion]
current_version = "3.0.2"
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 = "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}"'