dycw-pre-commit-hooks 0.12.3__tar.gz → 0.12.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dycw-pre-commit-hooks might be problematic. Click here for more details.
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/PKG-INFO +1 -1
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/pyproject.toml +2 -2
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/__init__.py +1 -1
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/common.py +2 -5
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/.gitignore +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/README.md +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/format_requirements/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/format_requirements/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/py.typed +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/replace_sequence_str/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/replace_sequence_str/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/run_bump_my_version/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/run_bump_my_version/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/tag_commits/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/tag_commits/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/format_requirements/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/format_requirements/in.toml +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/format_requirements/out.toml +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/format_requirements/test_format_requirements.py +0 -0
- {dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/test_main.py +0 -0
|
@@ -30,7 +30,7 @@ dependencies = [
|
|
|
30
30
|
name = "dycw-pre-commit-hooks"
|
|
31
31
|
readme = "README.md"
|
|
32
32
|
requires-python = ">= 3.12"
|
|
33
|
-
version = "0.12.
|
|
33
|
+
version = "0.12.4"
|
|
34
34
|
|
|
35
35
|
[project.scripts]
|
|
36
36
|
format-requirements = "pre_commit_hooks.format_requirements:main"
|
|
@@ -41,7 +41,7 @@ tag-commits = "pre_commit_hooks.tag_commits:main"
|
|
|
41
41
|
# bump-my-version
|
|
42
42
|
[tool.bumpversion]
|
|
43
43
|
allow_dirty = true
|
|
44
|
-
current_version = "0.12.
|
|
44
|
+
current_version = "0.12.4"
|
|
45
45
|
|
|
46
46
|
[[tool.bumpversion.files]]
|
|
47
47
|
filename = "src/pre_commit_hooks/__init__.py"
|
{dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/pre_commit_hooks/common.py
RENAMED
|
@@ -7,7 +7,6 @@ from click import Choice, option
|
|
|
7
7
|
from loguru import logger
|
|
8
8
|
from tomlkit import TOMLDocument, parse
|
|
9
9
|
from tomlkit.items import Table
|
|
10
|
-
from utilities.pathlib import get_repo_root
|
|
11
10
|
from utilities.typing import get_literal_elements
|
|
12
11
|
from utilities.version import Version, parse_version
|
|
13
12
|
|
|
@@ -65,15 +64,13 @@ def get_version(source: Mode | Path | str | bytes | TOMLDocument, /) -> Version:
|
|
|
65
64
|
|
|
66
65
|
|
|
67
66
|
def get_toml_path(mode: Mode = DEFAULT_MODE, /) -> Path:
|
|
68
|
-
root = get_repo_root()
|
|
69
67
|
match mode:
|
|
70
68
|
case "pyproject":
|
|
71
|
-
|
|
69
|
+
return Path("pyproject.toml")
|
|
72
70
|
case "bumpversion":
|
|
73
|
-
|
|
71
|
+
return Path(".bumpversion.toml")
|
|
74
72
|
case never: # pyright: ignore[reportUnnecessaryComparison]
|
|
75
73
|
assert_never(never)
|
|
76
|
-
return root.relative_to(filename)
|
|
77
74
|
|
|
78
75
|
|
|
79
76
|
__all__ = ["DEFAULT_MODE", "Mode", "get_toml_path", "get_version", "mode_option"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/format_requirements/in.toml
RENAMED
|
File without changes
|
{dycw_pre_commit_hooks-0.12.3 → dycw_pre_commit_hooks-0.12.4}/src/tests/format_requirements/out.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|