dycw-pre-commit-hooks 0.13.8__tar.gz → 0.13.10__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.13.8 → dycw_pre_commit_hooks-0.13.10}/PKG-INFO +2 -2
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/pyproject.toml +3 -3
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/__init__.py +1 -1
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/tag_commits/__init__.py +14 -3
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/.gitignore +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/README.md +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/check_submodules_updated/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/check_submodules_updated/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/check_submodules_updated/check-submodules-updated +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/check_version_bumped/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/check_version_bumped/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/check_version_bumped/check-version-bumped +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/common.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/format_requirements/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/format_requirements/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/mirror_files/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/mirror_files/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/py.typed +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/replace_sequence_str/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/replace_sequence_str/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/run_bump_my_version/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/run_bump_my_version/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/tag_commits/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/tests/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/tests/format_requirements/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/tests/format_requirements/in.toml +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/tests/format_requirements/out.toml +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/tests/format_requirements/test_format_requirements.py +0 -0
- {dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/tests/test_main.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dycw-pre-commit-hooks
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.10
|
|
4
4
|
Author-email: Derek Wan <d.wan@icloud.com>
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: click<8.4,>=8.3.0
|
|
7
|
-
Requires-Dist: dycw-utilities<0.169,>=0.168.
|
|
7
|
+
Requires-Dist: dycw-utilities<0.169,>=0.168.8
|
|
8
8
|
Requires-Dist: gitpython<3.2,>=3.1.45
|
|
9
9
|
Requires-Dist: libcst<1.9,>=1.8.5
|
|
10
10
|
Requires-Dist: loguru<0.8,>=0.7.3
|
|
@@ -18,7 +18,7 @@ dev = [
|
|
|
18
18
|
authors = [{name = "Derek Wan", email = "d.wan@icloud.com"}]
|
|
19
19
|
dependencies = [
|
|
20
20
|
"click >=8.3.0, <8.4",
|
|
21
|
-
"dycw-utilities >=0.168.
|
|
21
|
+
"dycw-utilities >=0.168.8, <0.169",
|
|
22
22
|
"gitpython >=3.1.45, <3.2",
|
|
23
23
|
"libcst >=1.8.5, <1.9",
|
|
24
24
|
"loguru >=0.7.3, <0.8",
|
|
@@ -31,7 +31,7 @@ dependencies = [
|
|
|
31
31
|
name = "dycw-pre-commit-hooks"
|
|
32
32
|
readme = "README.md"
|
|
33
33
|
requires-python = ">= 3.12"
|
|
34
|
-
version = "0.13.
|
|
34
|
+
version = "0.13.10"
|
|
35
35
|
|
|
36
36
|
[project.scripts]
|
|
37
37
|
check-submodules-updated = "pre_commit_hooks.check_submodules_updated:main"
|
|
@@ -45,7 +45,7 @@ tag-commits = "pre_commit_hooks.tag_commits:main"
|
|
|
45
45
|
# bump-my-version
|
|
46
46
|
[tool.bumpversion]
|
|
47
47
|
allow_dirty = true
|
|
48
|
-
current_version = "0.13.
|
|
48
|
+
current_version = "0.13.10"
|
|
49
49
|
|
|
50
50
|
[[tool.bumpversion.files]]
|
|
51
51
|
filename = "src/pre_commit_hooks/__init__.py"
|
|
@@ -99,13 +99,24 @@ def _tag_commit(
|
|
|
99
99
|
except GetVersionError as error:
|
|
100
100
|
msg = f"Failed to tag {desc}; error getting veresion: {error.args[0]}"
|
|
101
101
|
raise TagCommitsError(msg) from None
|
|
102
|
+
str_ver = str(version)
|
|
102
103
|
try:
|
|
103
|
-
|
|
104
|
+
existing = repo.tags[str_ver]
|
|
105
|
+
except IndexError:
|
|
106
|
+
pass
|
|
107
|
+
else:
|
|
108
|
+
repo.delete_tag(existing)
|
|
109
|
+
try:
|
|
110
|
+
tag = repo.create_tag(str_ver, ref=sha)
|
|
104
111
|
except GitCommandError as error:
|
|
105
112
|
msg = f"Failed to tag {desc}; error creating tag: {error.stderr.strip()}"
|
|
106
113
|
raise TagCommitsError(msg) from None
|
|
107
|
-
logger.info(f"Tagging {desc} as {
|
|
108
|
-
|
|
114
|
+
logger.info(f"Tagging {desc} as {str_ver!r}...")
|
|
115
|
+
try:
|
|
116
|
+
_ = repo.remotes.origin.push(f"refs/tags/{tag.name}")
|
|
117
|
+
except GitCommandError as error:
|
|
118
|
+
msg = f"Failed to tag {desc}; error pushing tag: {error.stderr.strip()}"
|
|
119
|
+
raise TagCommitsError(msg) from None
|
|
109
120
|
return True
|
|
110
121
|
|
|
111
122
|
|
|
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.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dycw_pre_commit_hooks-0.13.8 → dycw_pre_commit_hooks-0.13.10}/src/pre_commit_hooks/py.typed
RENAMED
|
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.13.8 → dycw_pre_commit_hooks-0.13.10}/src/tests/format_requirements/in.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|