67 lines
1.6 KiB
TOML
67 lines
1.6 KiB
TOML
![]() |
[tool.isort]
|
||
|
profile = "black"
|
||
|
known_first_party = "stac_fastapi.pgstac"
|
||
|
known_third_party = ["rasterio", "stac-pydantic", "sqlalchemy", "geoalchemy2", "fastapi", "stac_fastapi"]
|
||
|
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
|
||
|
|
||
|
[tool.mypy]
|
||
|
ignore_missing_imports = true
|
||
|
namespace_packages = true
|
||
|
explicit_package_bases = true
|
||
|
exclude = ["tests", ".venv"]
|
||
|
|
||
|
[tool.ruff]
|
||
|
line-length = 90
|
||
|
|
||
|
[tool.ruff.lint]
|
||
|
select = [
|
||
|
"C",
|
||
|
"E",
|
||
|
"F",
|
||
|
"W",
|
||
|
"B",
|
||
|
]
|
||
|
ignore = [
|
||
|
"E203", # line too long, handled by black
|
||
|
"E501", # do not perform function calls in argument defaults
|
||
|
"B028", # No explicit `stacklevel` keyword argument found
|
||
|
]
|
||
|
|
||
|
|
||
|
[tool.bumpversion]
|
||
|
current_version = "5.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/pgstac/version.py"
|
||
|
search = '__version__ = "{current_version}"'
|
||
|
replace = '__version__ = "{new_version}"'
|