Commit d972b87b authored by Jan Reimes's avatar Jan Reimes
Browse files

Add undersort, hatch versioning, and dynamic versioning config

- Add undersort to dev dependencies and add [tool.undersort] section - Add [tool.hatch.version] and [tool.uv-dynamic-versioning] for semver versioning
parent 3075a71c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ dev = [
    "pytest-cov>=4.1.0",
    "ruff>=0.1.0",
    "ty>=0.1.0",
    "undersort>=0.1.5",
]

[project.scripts]
@@ -62,3 +63,14 @@ exclude_lines = [
    "if TYPE_CHECKING:",
    "@abstractmethod",
]

[tool.undersort]
order = ["public", "protected", "private"]
method_type_order = ["instance", "class", "static"]

[tool.hatch.version]
source = "uv-dynamic-versioning"

[tool.uv-dynamic-versioning]
vcs = "git"
style = "semver"