dycw-pre-commit-hooks 0.8.34__py3-none-any.whl → 0.8.36__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,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dycw-pre-commit-hooks
3
- Version: 0.8.34
3
+ Version: 0.8.36
4
4
  Author-email: Derek Wan <d.wan@icloud.com>
5
- Requires-Python: >=3.11
6
- Requires-Dist: dycw-utilities[click,loguru,semver]<0.19,>=0.18.12
7
- Requires-Dist: semver<3.1,>=3.0.1
5
+ Requires-Python: >=3.10
6
+ Requires-Dist: dycw-utilities[click,loguru,semver]<0.24,>=0.23.9
7
+ Requires-Dist: semver<3.1,>=3.0.2
8
8
  Requires-Dist: tomlkit<0.13,>=0.12.3
9
9
  Requires-Dist: xdg<6.1,>=6.0.0
10
10
  Provides-Extra: dev
@@ -0,0 +1,17 @@
1
+ pre_commit_hooks/__init__.py,sha256=AuCk1fgJ0oaW0nyShoeZpD-GlhlmcpCXzbyf6ydbPAE,59
2
+ pre_commit_hooks/common.py,sha256=dolXpZCuSTDlk5w86czGDXrcLdGn53HynflvAmR5y_c,2532
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=TohCB-YiXLTNK3Z-Wg-REOjPJ3MpO4ua1UUALuyko4o,1043
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_pip_compile/__init__.py,sha256=bBskhX3mKmnSoJh9hKMCwjP9R3ebeVN-QE-PeFzkQFE,4600
11
+ pre_commit_hooks/run_pip_compile/__main__.py,sha256=rKny40uj97jXK1Iv1TwP_9_Uzx3v5uLidNGjEmnrC9Q,152
12
+ pre_commit_hooks/run_ruff_format/__init__.py,sha256=LSUrwgg4TkpqV-DhG4HS3yhqlHxofwVm73ZIRgZjMGg,2094
13
+ pre_commit_hooks/run_ruff_format/__main__.py,sha256=faesqqpMaesg5r-LvkkQt1W9kahvNr-60K3SMYv1NgY,152
14
+ dycw_pre_commit_hooks-0.8.36.dist-info/METADATA,sha256=ow7uQ8uo4GB2-0RRmiT7aywDIQsRwyLw_IYy41xmDiw,1042
15
+ dycw_pre_commit_hooks-0.8.36.dist-info/WHEEL,sha256=mRYSEL3Ih6g5a_CVMIcwiF__0Ae4_gLYh01YFNwiq1k,87
16
+ dycw_pre_commit_hooks-0.8.36.dist-info/entry_points.txt,sha256=9gFQ0sNYrqfQdXZLf9vhX0CRXUW7kgjFuR1bQKxjAds,296
17
+ dycw_pre_commit_hooks-0.8.36.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.18.0
2
+ Generator: hatchling 1.21.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1 +1,3 @@
1
- __version__ = "0.8.34"
1
+ from __future__ import annotations
2
+
3
+ __version__ = "0.8.36"
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from dataclasses import dataclass
2
4
  from hashlib import md5
3
5
  from pathlib import Path
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pathlib import Path
2
4
  from subprocess import PIPE, STDOUT, CalledProcessError, check_call
3
5
  from typing import Literal
@@ -10,9 +12,7 @@ from pre_commit_hooks.common import check_versions
10
12
 
11
13
  @command()
12
14
  @option(
13
- "--setup-cfg",
14
- is_flag=True,
15
- help="Read `setup.cfg` instead of `bumpversion.cfg`",
15
+ "--setup-cfg", is_flag=True, help="Read `setup.cfg` instead of `bumpversion.cfg`"
16
16
  )
17
17
  def main(*, setup_cfg: bool) -> bool:
18
18
  """CLI for the `run_bump2version` hook."""
@@ -34,8 +34,7 @@ def _process(*, filename: Literal["setup.cfg", ".bumpversion.cfg"]) -> bool:
34
34
  logger.exception("Failed to run {cmd!r}", cmd=" ".join(cmd))
35
35
  except FileNotFoundError:
36
36
  logger.exception(
37
- "Failed to run {cmd!r}. Is `bump2version` installed?",
38
- cmd=" ".join(cmd),
37
+ "Failed to run {cmd!r}. Is `bump2version` installed?", cmd=" ".join(cmd)
39
38
  )
40
39
  else:
41
40
  _trim_trailing_whitespaces(path)
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pre_commit_hooks.run_bump2version import main
2
4
 
3
5
  if __name__ == "__main__":
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from collections.abc import Iterator
2
4
  from pathlib import Path
3
5
  from subprocess import check_output
@@ -11,11 +13,7 @@ from click import argument, command
11
13
  "paths",
12
14
  nargs=-1,
13
15
  type=click.Path(
14
- exists=True,
15
- file_okay=True,
16
- dir_okay=False,
17
- readable=True,
18
- path_type=Path,
16
+ exists=True, file_okay=True, dir_okay=False, readable=True, path_type=Path
19
17
  ),
20
18
  )
21
19
  def main(paths: tuple[Path, ...], /) -> bool:
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pre_commit_hooks.run_dockfmt import main
2
4
 
3
5
  if __name__ == "__main__":
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pathlib import Path
2
4
  from subprocess import PIPE, STDOUT, CalledProcessError, check_call
3
5
  from typing import cast
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pre_commit_hooks.run_hatch_version import main
2
4
 
3
5
  if __name__ == "__main__":
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from collections.abc import Iterable, Iterator
2
4
  from pathlib import Path
3
5
  from re import MULTILINE, sub
@@ -13,8 +15,7 @@ from tomlkit import dumps, parse
13
15
  from tomlkit.container import Container
14
16
  from utilities.datetime import get_now
15
17
  from utilities.git import get_repo_root
16
- from utilities.pathlib import PathLike
17
- from utilities.typing import IterableStrs
18
+ from utilities.types import IterableStrs, PathLike
18
19
 
19
20
  from pre_commit_hooks.common import PYPROJECT_TOML, read_pyproject
20
21
 
@@ -24,11 +25,7 @@ from pre_commit_hooks.common import PYPROJECT_TOML, read_pyproject
24
25
  "paths",
25
26
  nargs=-1,
26
27
  type=click.Path(
27
- exists=True,
28
- file_okay=True,
29
- dir_okay=False,
30
- readable=True,
31
- path_type=Path,
28
+ exists=True, file_okay=True, dir_okay=False, readable=True, path_type=Path
32
29
  ),
33
30
  )
34
31
  def main(paths: tuple[Path, ...]) -> bool:
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pre_commit_hooks.run_pip_compile import main
2
4
 
3
5
  if __name__ == "__main__":
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from collections.abc import Iterator
2
4
  from contextlib import contextmanager
3
5
  from subprocess import CalledProcessError, check_call
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pre_commit_hooks.run_ruff_format import main
2
4
 
3
5
  if __name__ == "__main__":
@@ -1,17 +0,0 @@
1
- pre_commit_hooks/__init__.py,sha256=q6X5jxDzn7D5Z5oQ31K7ES7IKXMKu01D40Ky3xAmBCI,23
2
- pre_commit_hooks/common.py,sha256=hwVxFfjo6_eYKuYgIe53eFnE5F2VT54GJja2hydvWcw,2496
3
- pre_commit_hooks/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- pre_commit_hooks/run_bump2version/__init__.py,sha256=NgwBtq5J6aYvVY_d41f5j3ylfq7NrG56PGLCFuirjnw,1581
5
- pre_commit_hooks/run_bump2version/__main__.py,sha256=Iw8jbq91sc_vSHO-oQfLJMBhM5K0u282b37XRSch0E8,117
6
- pre_commit_hooks/run_dockfmt/__init__.py,sha256=WZ2Ux_2ICUcAFmPtrmu5fAEAVBQFGKzNgBr6SS_BXz8,1040
7
- pre_commit_hooks/run_dockfmt/__main__.py,sha256=4THoW2NxXW-VQYrtd3ea9hZybF7vDDwGlaLETl7j9SI,112
8
- pre_commit_hooks/run_hatch_version/__init__.py,sha256=QSLX6ZT6iJCLeS2EtuZLDDFAdcLsAZgxZWbHE_a59Es,1687
9
- pre_commit_hooks/run_hatch_version/__main__.py,sha256=9BTvlci4h7iAgbg78HXFbpzc6v6h9jpMhoDfAKlC9oQ,118
10
- pre_commit_hooks/run_pip_compile/__init__.py,sha256=mrS0R5RV8SgbojGO3h5MJzKXjojei3BJSkXk1PnACwc,4627
11
- pre_commit_hooks/run_pip_compile/__main__.py,sha256=ym-lwxFBwy738UVlIMnZTHxy_irWcgRf55QNgaJMUjg,116
12
- pre_commit_hooks/run_ruff_format/__init__.py,sha256=baEEqgfnnH4Q4bVc1q_fpb5XUxrqqv7VvORTiQnmV_g,2058
13
- pre_commit_hooks/run_ruff_format/__main__.py,sha256=MPwA0hkLaI09g6DVG8bo6Sdhb1LjY7NMzvrYIPLhj2o,116
14
- dycw_pre_commit_hooks-0.8.34.dist-info/METADATA,sha256=m7ZEKC8vRI5Q-I3aOOgmZkFOGWdfo1gVIlltpJ1-l1s,1043
15
- dycw_pre_commit_hooks-0.8.34.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
16
- dycw_pre_commit_hooks-0.8.34.dist-info/entry_points.txt,sha256=9gFQ0sNYrqfQdXZLf9vhX0CRXUW7kgjFuR1bQKxjAds,296
17
- dycw_pre_commit_hooks-0.8.34.dist-info/RECORD,,