dycw-pre-commit-hooks 0.9.13__py3-none-any.whl → 0.9.15__py3-none-any.whl

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dycw-pre-commit-hooks
3
- Version: 0.9.13
3
+ Version: 0.9.15
4
4
  Author-email: Derek Wan <d.wan@icloud.com>
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: click<8.2,>=8.1.7
@@ -0,0 +1,17 @@
1
+ pre_commit_hooks/__init__.py,sha256=v3H64hWnOzKsfkkLGVh7U9nhAg_Lp2a6Xz-jg-BwqdQ,59
2
+ pre_commit_hooks/common.py,sha256=H8RJkUXKQ7vHbCsi6oDq7XAdggjOij5R1xGoQ1UXhKA,2512
3
+ pre_commit_hooks/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ pre_commit_hooks/run_bump2version/__init__.py,sha256=nhJ2kdUjSteGVjatTfMSeQb92zIlfiwyeHll_7_nzvM,1581
5
+ pre_commit_hooks/run_bump2version/__main__.py,sha256=BZy8mDElAK3-X2iKvqg1XnGbCiYXcLoMDefaPanWx4g,153
6
+ pre_commit_hooks/run_dockfmt/__init__.py,sha256=REJG8A77H1VbPvIhStlsIWEqqYeaK4h7q17kbLTK3TE,1070
7
+ pre_commit_hooks/run_dockfmt/__main__.py,sha256=aE0DIrzWy4mnQ04_n5U6znbmJwJBkjZUXv9Th3OqQ7Y,148
8
+ pre_commit_hooks/run_hatch_version/__init__.py,sha256=EYxh9yJP3axGNASWC5KaKkWhWocNynLiMPUSIGsG4yo,1709
9
+ pre_commit_hooks/run_hatch_version/__main__.py,sha256=XeMLmgm1HMujkYhaF9LcMygBrwa2KqIGMzznY106gd8,154
10
+ pre_commit_hooks/run_ruff_format/__init__.py,sha256=rolxkdz2nOxu3gvB143z91PPdqJVsz2pvBD3YD7LXL8,2118
11
+ pre_commit_hooks/run_ruff_format/__main__.py,sha256=faesqqpMaesg5r-LvkkQt1W9kahvNr-60K3SMYv1NgY,152
12
+ pre_commit_hooks/run_uv_pip_compile/__init__.py,sha256=FwHYh0fvkYckgminkzih_uMGjOJXXpwT8rkuyrfkuFE,2368
13
+ pre_commit_hooks/run_uv_pip_compile/__main__.py,sha256=LLlM3xVN7l5cxZ0yD_8He8n_GEmQqn_d-2wl6BQtqoA,155
14
+ dycw_pre_commit_hooks-0.9.15.dist-info/METADATA,sha256=zZuzBFcd69XeGtbiRthZqU_ZR1lOLH7800TdC4_SO4c,1120
15
+ dycw_pre_commit_hooks-0.9.15.dist-info/WHEEL,sha256=osohxoshIHTFJFVPhsi1UkZuLRGMHRXZzwEBW2ezjrc,87
16
+ dycw_pre_commit_hooks-0.9.15.dist-info/entry_points.txt,sha256=E5ZGYo3x6IF71IHDEhXJYfTHRRIrjzzuxsiYgVkCDQE,302
17
+ dycw_pre_commit_hooks-0.9.15.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.22.4
2
+ Generator: hatchling 1.24.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,3 +1,3 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "0.9.13"
3
+ __version__ = "0.9.15"
@@ -53,20 +53,14 @@ def _get_master_version(
53
53
  name: Literal["run-bump2version", "run-hatch-version"],
54
54
  ) -> VersionInfo:
55
55
  repo = md5(Path.cwd().as_posix().encode(), usedforsecurity=False).hexdigest()
56
- commit = check_output(
57
- ["git", "rev-parse", "origin/master"], # noqa: S603, S607
58
- text=True,
59
- ).rstrip("\n")
56
+ commit = check_output(["git", "rev-parse", "origin/master"], text=True).rstrip("\n")
60
57
  cache = xdg_cache_home().joinpath("pre-commit-hooks", name, repo, commit)
61
58
  try:
62
59
  with cache.open() as fh:
63
60
  return VersionInfo.parse(fh.read())
64
61
  except FileNotFoundError:
65
62
  cache.parent.mkdir(parents=True, exist_ok=True)
66
- text = check_output(
67
- ["git", "show", f"{commit}:{path}"], # noqa: S603, S607
68
- text=True,
69
- )
63
+ text = check_output(["git", "show", f"{commit}:{path}"], text=True)
70
64
  version = _parse_version(pattern, text)
71
65
  with cache.open(mode="w") as fh:
72
66
  _ = fh.write(str(version))
@@ -28,7 +28,7 @@ def _process(*, filename: Literal["setup.cfg", ".bumpversion.cfg"]) -> bool:
28
28
  return True
29
29
  cmd = ["bump2version", "--allow-dirty", f"--new-version={version}", "patch"]
30
30
  try:
31
- _ = check_call(cmd, stdout=PIPE, stderr=STDOUT) # noqa: S603
31
+ _ = check_call(cmd, stdout=PIPE, stderr=STDOUT)
32
32
  except CalledProcessError as error:
33
33
  if error.returncode != 1:
34
34
  logger.exception("Failed to run {cmd!r}", cmd=" ".join(cmd))
@@ -35,10 +35,9 @@ def _process(path: Path, /) -> bool:
35
35
  with path.open() as fh:
36
36
  current = fh.read()
37
37
  strip = "\t\n"
38
- proposed = check_output(
39
- ["dockfmt", "fmt", path.as_posix()], # noqa: S603, S607
40
- text=True,
41
- ).lstrip(strip)
38
+ proposed = check_output(["dockfmt", "fmt", path.as_posix()], text=True).lstrip(
39
+ strip
40
+ )
42
41
  if current == proposed:
43
42
  return True
44
43
  with path.open(mode="w") as fh:
@@ -25,7 +25,7 @@ def _process() -> bool:
25
25
  return True
26
26
  cmd = ["hatch", "version", str(version)]
27
27
  try:
28
- _ = check_call(cmd, stdout=PIPE, stderr=STDOUT) # noqa: S603
28
+ _ = check_call(cmd, stdout=PIPE, stderr=STDOUT)
29
29
  except CalledProcessError as error:
30
30
  if error.returncode != 1:
31
31
  logger.exception("Failed to run {cmd!r}", cmd=" ".join(cmd))
@@ -76,7 +76,7 @@ def _get_modified_pyproject() -> TOMLDocument:
76
76
  def _run_ruff_format() -> bool:
77
77
  cmd = ["ruff", "format", "."]
78
78
  try:
79
- code = check_call(cmd) # noqa: S603
79
+ code = check_call(cmd)
80
80
  except CalledProcessError:
81
81
  logger.exception("Failed to run {cmd!r}", cmd=" ".join(cmd))
82
82
  raise
@@ -14,7 +14,7 @@ from pre_commit_hooks.common import REQUIREMENTS_TXT
14
14
  @command()
15
15
  @option(
16
16
  "--python-version",
17
- help="The minimum Python version that should be supported by the compiled requirements", # noqa: E501
17
+ help="The minimum Python version that should be supported by the compiled requirements",
18
18
  )
19
19
  def main(*, python_version: str | None) -> bool:
20
20
  """CLI for the `run-uv-pip-compile` hook."""
@@ -58,7 +58,7 @@ def _run_uv_pip_compile(*, python_version: str | None) -> str:
58
58
  ]
59
59
  )
60
60
  try:
61
- _ = check_call(cmd) # noqa: S603
61
+ _ = check_call(cmd)
62
62
  except CalledProcessError:
63
63
  logger.exception("Failed to run {cmd!r}", cmd=" ".join(cmd))
64
64
  raise
@@ -1,17 +0,0 @@
1
- pre_commit_hooks/__init__.py,sha256=2C7lFHG2kk5dMSUTplKcZnZJXOdjZMCAEUOPmjFgIU4,59
2
- pre_commit_hooks/common.py,sha256=bgZXq2Mo23RgZdrR4meJRNz0c9eh7AB2VUN8sE8l_gY,2610
3
- pre_commit_hooks/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- pre_commit_hooks/run_bump2version/__init__.py,sha256=IN7eDW_w8uW7KHWZEEi1CiWXoKYeMKEM1AfXOLZ2BoY,1595
5
- pre_commit_hooks/run_bump2version/__main__.py,sha256=BZy8mDElAK3-X2iKvqg1XnGbCiYXcLoMDefaPanWx4g,153
6
- pre_commit_hooks/run_dockfmt/__init__.py,sha256=szZ-M97sM300ZrEqrWxH9B3i6PZPsjuK-NExDFIHd5k,1099
7
- pre_commit_hooks/run_dockfmt/__main__.py,sha256=aE0DIrzWy4mnQ04_n5U6znbmJwJBkjZUXv9Th3OqQ7Y,148
8
- pre_commit_hooks/run_hatch_version/__init__.py,sha256=Ctb1GYz3XTB4vE2gOV_zGVDtDIdM7Heajb25tF19TzA,1723
9
- pre_commit_hooks/run_hatch_version/__main__.py,sha256=XeMLmgm1HMujkYhaF9LcMygBrwa2KqIGMzznY106gd8,154
10
- pre_commit_hooks/run_ruff_format/__init__.py,sha256=J8Eil9zhahRB9GUG8SWdIEM0eIvUmY8Am-W4F-E-4vE,2132
11
- pre_commit_hooks/run_ruff_format/__main__.py,sha256=faesqqpMaesg5r-LvkkQt1W9kahvNr-60K3SMYv1NgY,152
12
- pre_commit_hooks/run_uv_pip_compile/__init__.py,sha256=FsDDXQZEZF134Bnm7nHjFE2O-fEhkWxk5iFccOQ3cSw,2396
13
- pre_commit_hooks/run_uv_pip_compile/__main__.py,sha256=LLlM3xVN7l5cxZ0yD_8He8n_GEmQqn_d-2wl6BQtqoA,155
14
- dycw_pre_commit_hooks-0.9.13.dist-info/METADATA,sha256=eC1JZVUQy7-iTo_Tr8sVDLcONwJTtsT9_GRSP3jcRHI,1120
15
- dycw_pre_commit_hooks-0.9.13.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
16
- dycw_pre_commit_hooks-0.9.13.dist-info/entry_points.txt,sha256=E5ZGYo3x6IF71IHDEhXJYfTHRRIrjzzuxsiYgVkCDQE,302
17
- dycw_pre_commit_hooks-0.9.13.dist-info/RECORD,,