dycw-pre-commit-hooks 0.9.16__tar.gz → 0.9.17__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.

Files changed (30) hide show
  1. dycw_pre_commit_hooks-0.9.17/.envrc +1 -0
  2. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/.pre-commit-config.yaml +8 -5
  3. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/PKG-INFO +6 -5
  4. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/__init__.py +1 -1
  5. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_hatch_version/__init__.py +2 -2
  6. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pyproject.toml +25 -30
  7. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/requirements.txt +22 -26
  8. dycw_pre_commit_hooks-0.9.16/.envrc +0 -1
  9. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/.github/workflows/push.yml +0 -0
  10. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/.gitignore +0 -0
  11. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/.pre-commit-hooks.yaml +0 -0
  12. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/README.md +0 -0
  13. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/common.py +0 -0
  14. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/py.typed +0 -0
  15. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_bump2version/__init__.py +0 -0
  16. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_bump2version/__main__.py +0 -0
  17. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_dockfmt/__init__.py +0 -0
  18. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_dockfmt/__main__.py +0 -0
  19. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_hatch_version/__main__.py +0 -0
  20. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_ruff_format/__init__.py +0 -0
  21. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_ruff_format/__main__.py +0 -0
  22. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_uv_pip_compile/__init__.py +0 -0
  23. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/pre_commit_hooks/run_uv_pip_compile/__main__.py +0 -0
  24. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/tests/__init__.py +0 -0
  25. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/tests/test_main.py +0 -0
  26. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/try-repo/run-bump2version.sh +0 -0
  27. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/try-repo/run-dockfmt.sh +0 -0
  28. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/try-repo/run-hatch-version.sh +0 -0
  29. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/try-repo/run-ruff-format.sh +0 -0
  30. {dycw_pre_commit_hooks-0.9.16 → dycw_pre_commit_hooks-0.9.17}/try-repo/run-uv-pip-compile.sh +0 -0
@@ -0,0 +1 @@
1
+ layout pyenv 3.11.9
@@ -1,24 +1,28 @@
1
1
  repos:
2
2
  # fixers
3
3
  - repo: https://github.com/astral-sh/ruff-pre-commit
4
- rev: v0.5.1
4
+ rev: v0.5.7
5
5
  hooks:
6
6
  - id: ruff
7
7
  args: [--fix]
8
8
  - id: ruff-format
9
9
  types_or: [python, pyi, jupyter]
10
10
  - repo: https://github.com/dycw/pre-commit-hooks
11
- rev: 0.9.15
11
+ rev: 0.9.16
12
12
  hooks:
13
13
  - id: run-hatch-version
14
14
  - id: run-ruff-format
15
15
  - id: run-uv-pip-compile
16
- args: [--python-version=3.10]
16
+ args: [--python-version=3.11]
17
17
  - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
18
- rev: v2.13.0
18
+ rev: v2.14.0
19
19
  hooks:
20
20
  - id: pretty-format-toml
21
21
  args: [--autofix, --trailing-commas]
22
+ - repo: https://github.com/pamoller/xmlformatter
23
+ rev: v0.2.6
24
+ hooks:
25
+ - id: xml-formatter
22
26
  - repo: https://github.com/pre-commit/mirrors-prettier
23
27
  rev: v4.0.0-alpha.8
24
28
  hooks:
@@ -28,7 +32,6 @@ repos:
28
32
  hooks:
29
33
  - id: check-executables-have-shebangs
30
34
  - id: check-merge-conflict
31
- - id: check-shebang-scripts-are-executable
32
35
  - id: check-symlinks
33
36
  - id: destroyed-symlinks
34
37
  - id: detect-private-key
@@ -1,17 +1,18 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dycw-pre-commit-hooks
3
- Version: 0.9.16
3
+ Version: 0.9.17
4
4
  Author-email: Derek Wan <d.wan@icloud.com>
5
- Requires-Python: >=3.10
5
+ Requires-Python: >=3.11
6
6
  Requires-Dist: click<8.2,>=8.1.7
7
- Requires-Dist: dycw-utilities<0.26,>=0.25.1
7
+ Requires-Dist: dycw-utilities<0.41,>=0.40.12
8
8
  Requires-Dist: loguru<0.8,>=0.7.2
9
9
  Requires-Dist: semver<3.1,>=3.0.2
10
- Requires-Dist: tomlkit<0.13,>=0.12.3
10
+ Requires-Dist: tomlkit<0.14,>=0.13.2
11
11
  Requires-Dist: xdg-base-dirs<6.1,>=6.0.1
12
12
  Provides-Extra: dev
13
+ Requires-Dist: basedpyright<1.17,>=1.16.0; extra == 'dev'
13
14
  Requires-Dist: dycw-utilities[test]; extra == 'dev'
14
- Requires-Dist: hatch; extra == 'dev'
15
+ Requires-Dist: hatch<1.13,>=1.12.0; extra == 'dev'
15
16
  Description-Content-Type: text/markdown
16
17
 
17
18
  # pre-commit-hooks
@@ -1,3 +1,3 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "0.9.16"
3
+ __version__ = "0.9.17"
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  from pathlib import Path
4
4
  from subprocess import PIPE, STDOUT, CalledProcessError, check_call
5
- from typing import cast
5
+ from typing import Any, cast
6
6
 
7
7
  from click import command
8
8
  from loguru import logger
@@ -55,4 +55,4 @@ def _get_path_version_file() -> Path:
55
55
  except KeyError:
56
56
  logger.exception('pyproject.toml has no "tool.hatch.version" section')
57
57
  raise
58
- return Path(cast(str, version["path"]))
58
+ return Path(cast(Any, version["path"]))
@@ -9,19 +9,23 @@ requires = ["hatchling"]
9
9
  authors = [{name = "Derek Wan", email = "d.wan@icloud.com"}]
10
10
  dependencies = [
11
11
  "click >= 8.1.7, < 8.2",
12
- "dycw-utilities >= 0.25.1, < 0.26",
12
+ "dycw-utilities >= 0.40.12, < 0.41",
13
13
  "loguru >= 0.7.2, < 0.8",
14
14
  "semver >= 3.0.2, < 3.1",
15
- "tomlkit >= 0.12.3, < 0.13",
15
+ "tomlkit >= 0.13.2, < 0.14",
16
16
  "xdg-base-dirs >= 6.0.1, < 6.1",
17
17
  ]
18
18
  dynamic = ["version"]
19
19
  name = "dycw-pre-commit-hooks"
20
20
  readme = "README.md"
21
- requires-python = ">= 3.10"
21
+ requires-python = ">= 3.11"
22
22
 
23
23
  [project.optional-dependencies]
24
- dev = ["dycw-utilities[test]", "hatch"]
24
+ dev = [
25
+ "basedpyright >= 1.16.0, < 1.17",
26
+ "dycw-utilities[test]",
27
+ "hatch >= 1.12.0, < 1.13",
28
+ ]
25
29
 
26
30
  [project.scripts]
27
31
  run-bump2version = "pre_commit_hooks.run_bump2version:main"
@@ -30,6 +34,21 @@ run-hatch-version = "pre_commit_hooks.run_hatch_version:main"
30
34
  run-ruff-format = "pre_commit_hooks.run_ruff_format:main"
31
35
  run-uv-pip-compile = "pre_commit_hooks.run_uv_pip_compile:main"
32
36
 
37
+ # basedpyright
38
+ [tool.basedpyright]
39
+ include = ["src"]
40
+ pythonVersion = "3.11"
41
+ reportAny = false
42
+ reportMissingTypeArgument = false
43
+ reportMissingTypeStubs = false
44
+ reportPrivateUsage = false
45
+ reportUnknownArgumentType = false
46
+ reportUnknownMemberType = false
47
+ reportUnknownParameterType = false
48
+ reportUnknownVariableType = false
49
+ reportUnusedImport = false
50
+ reportUnusedVariable = false
51
+
33
52
  # coverage
34
53
  [tool.coverage]
35
54
 
@@ -62,34 +81,10 @@ path = "src/pre_commit_hooks/__init__.py"
62
81
  # nitpick
63
82
  [tool.nitpick]
64
83
  style = [
65
- "https://raw.githubusercontent.com/dycw/nitpick/master/styles/3.10.toml",
84
+ "https://raw.githubusercontent.com/dycw/nitpick/master/styles/3.11.toml",
66
85
  "https://raw.githubusercontent.com/dycw/nitpick/master/styles/common.toml",
67
86
  ]
68
87
 
69
- # pyright
70
- [tool.pyright]
71
- executionEnvironments = [{root = "src"}]
72
- include = ["src"]
73
- pythonVersion = "3.10"
74
- reportImplicitOverride = "error"
75
- reportImportCycles = "error"
76
- reportMissingSuperCall = "error"
77
- reportMissingTypeArgument = false
78
- reportMissingTypeStubs = false
79
- reportPrivateImportUsage = false
80
- reportPrivateUsage = false
81
- reportPropertyTypeMismatch = "error"
82
- reportShadowedImports = "error"
83
- reportUninitializedInstanceVariable = "error"
84
- reportUnknownArgumentType = false
85
- reportUnknownMemberType = false
86
- reportUnknownParameterType = false
87
- reportUnknownVariableType = false
88
- reportUnnecessaryTypeIgnoreComment = "error"
89
- reportUntypedBaseClass = false
90
- reportUnusedCallResult = "error"
91
- typeCheckingMode = "strict"
92
-
93
88
  # pytest
94
89
  [tool.pytest]
95
90
 
@@ -103,7 +98,7 @@ xfail_strict = true
103
98
  # ruff
104
99
  [tool.ruff]
105
100
  src = ["src"]
106
- target-version = "py310"
101
+ target-version = "py311"
107
102
  unsafe-fixes = true
108
103
 
109
104
  [tool.ruff.format]
@@ -1,11 +1,13 @@
1
1
  # This file was autogenerated by uv via the following command:
2
- # uv pip compile --extra=dev --prerelease=disallow --output-file=requirements.txt --python-version=3.10 pyproject.toml
2
+ # uv pip compile --extra=dev --prerelease=disallow --output-file=requirements.txt --python-version=3.11 pyproject.toml
3
3
  anyio==4.4.0
4
4
  # via httpx
5
- attrs==23.2.0
5
+ attrs==24.2.0
6
6
  # via hypothesis
7
7
  backports-tarfile==1.2.0
8
8
  # via jaraco-context
9
+ basedpyright==1.16.0
10
+ # via dycw-pre-commit-hooks (pyproject.toml)
9
11
  certifi==2024.7.4
10
12
  # via
11
13
  # httpcore
@@ -17,14 +19,8 @@ click==8.1.7
17
19
  # userpath
18
20
  distlib==0.3.8
19
21
  # via virtualenv
20
- dycw-utilities==0.25.2
22
+ dycw-utilities==0.40.12
21
23
  # via dycw-pre-commit-hooks (pyproject.toml)
22
- exceptiongroup==1.2.1
23
- # via
24
- # anyio
25
- # dycw-utilities
26
- # hypothesis
27
- # pytest
28
24
  execnet==2.1.1
29
25
  # via pytest-xdist
30
26
  filelock==3.15.4
@@ -41,14 +37,14 @@ httpx==0.27.0
41
37
  # via hatch
42
38
  hyperlink==21.0.0
43
39
  # via hatch
44
- hypothesis==6.105.1
40
+ hypothesis==6.111.0
45
41
  # via dycw-utilities
46
42
  idna==3.7
47
43
  # via
48
44
  # anyio
49
45
  # httpx
50
46
  # hyperlink
51
- importlib-metadata==8.0.0
47
+ importlib-metadata==8.2.0
52
48
  # via keyring
53
49
  iniconfig==2.0.0
54
50
  # via pytest
@@ -56,9 +52,9 @@ jaraco-classes==3.4.0
56
52
  # via keyring
57
53
  jaraco-context==5.3.0
58
54
  # via keyring
59
- jaraco-functools==4.0.1
55
+ jaraco-functools==4.0.2
60
56
  # via keyring
61
- keyring==25.2.1
57
+ keyring==25.3.0
62
58
  # via hatch
63
59
  loguru==0.7.2
64
60
  # via dycw-pre-commit-hooks (pyproject.toml)
@@ -66,15 +62,18 @@ markdown-it-py==3.0.0
66
62
  # via rich
67
63
  mdurl==0.1.2
68
64
  # via markdown-it-py
69
- more-itertools==10.3.0
65
+ more-itertools==10.4.0
70
66
  # via
71
67
  # jaraco-classes
72
68
  # jaraco-functools
69
+ nodejs-wheel-binaries==20.16.0
70
+ # via basedpyright
73
71
  packaging==24.1
74
72
  # via
75
73
  # hatch
76
74
  # hatchling
77
75
  # pytest
76
+ # pytest-rerunfailures
78
77
  pathspec==0.12.1
79
78
  # via hatchling
80
79
  pexpect==4.9.0
@@ -91,13 +90,16 @@ ptyprocess==0.7.0
91
90
  # via pexpect
92
91
  pygments==2.18.0
93
92
  # via rich
94
- pytest==8.2.2
93
+ pytest==8.3.2
95
94
  # via
96
95
  # dycw-utilities
97
96
  # pytest-randomly
97
+ # pytest-rerunfailures
98
98
  # pytest-xdist
99
99
  pytest-randomly==3.15.0
100
100
  # via dycw-utilities
101
+ pytest-rerunfailures==14.0
102
+ # via dycw-utilities
101
103
  pytest-xdist==3.6.1
102
104
  # via dycw-utilities
103
105
  rich==13.7.1
@@ -112,31 +114,25 @@ sniffio==1.3.1
112
114
  # httpx
113
115
  sortedcontainers==2.4.0
114
116
  # via hypothesis
115
- tomli==2.0.1
116
- # via
117
- # hatchling
118
- # pytest
119
117
  tomli-w==1.0.0
120
118
  # via hatch
121
- tomlkit==0.12.5
119
+ tomlkit==0.13.2
122
120
  # via
123
121
  # dycw-pre-commit-hooks (pyproject.toml)
124
122
  # hatch
125
123
  trove-classifiers==2024.7.2
126
124
  # via hatchling
127
125
  typing-extensions==4.12.2
128
- # via
129
- # anyio
130
- # dycw-utilities
126
+ # via dycw-utilities
131
127
  userpath==1.9.2
132
128
  # via hatch
133
- uv==0.2.22
129
+ uv==0.2.36
134
130
  # via hatch
135
131
  virtualenv==20.26.3
136
132
  # via hatch
137
133
  xdg-base-dirs==6.0.1
138
134
  # via dycw-pre-commit-hooks (pyproject.toml)
139
- zipp==3.19.2
135
+ zipp==3.20.0
140
136
  # via importlib-metadata
141
- zstandard==0.22.0
137
+ zstandard==0.23.0
142
138
  # via hatch
@@ -1 +0,0 @@
1
- layout pyenv 3.10.14