crackerjack 0.15.4__py3-none-any.whl → 0.15.6__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.
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/pdm-project/pdm
3
- rev: 2.23.0 # a PDM release exposing the hook
3
+ rev: 2.24.0 # a PDM release exposing the hook
4
4
  hooks:
5
5
  - id: pdm-lock-check
6
6
  # - id: pdm-export
@@ -23,7 +23,7 @@ repos:
23
23
  - id: check-added-large-files
24
24
  name: check-added-large-files
25
25
  - repo: https://github.com/astral-sh/ruff-pre-commit
26
- rev: v0.11.3
26
+ rev: v0.11.6
27
27
  hooks:
28
28
  - id: ruff-format
29
29
  - id: ruff
@@ -32,7 +32,7 @@ repos:
32
32
  hooks:
33
33
  - id: vulture
34
34
  - repo: https://github.com/fredrikaverpil/creosote
35
- rev: v4.0.2
35
+ rev: v4.0.3
36
36
  hooks:
37
37
  - id: creosote
38
38
  - repo: https://github.com/ikamensh/flynt/
@@ -71,11 +71,11 @@ repos:
71
71
  - id: bandit
72
72
  args: ["-c", "pyproject.toml"]
73
73
  - repo: https://github.com/RobertCraigie/pyright-python
74
- rev: v1.1.398
74
+ rev: v1.1.399
75
75
  hooks:
76
76
  - id: pyright
77
77
  - repo: https://github.com/astral-sh/ruff-pre-commit
78
- rev: v0.11.3
78
+ rev: v0.11.6
79
79
  hooks:
80
80
  - id: ruff
81
81
  - id: ruff-format
@@ -79,18 +79,21 @@ class CodeCleaner:
79
79
  if "#" not in line or line.endswith("# skip"):
80
80
  new_lines.append(line)
81
81
  continue
82
- idx = line.find("# ")
83
- code_part = line[:idx].rstrip()
84
- comment_part = line[idx:]
85
- if (
86
- " type: ignore" in comment_part
87
- or " noqa" in comment_part
88
- or " nosec" in comment_part
89
- ):
90
- new_lines.append(line)
82
+ if re.search(r"#\s", line):
83
+ idx = line.find("#")
84
+ code_part = line[:idx].rstrip()
85
+ comment_part = line[idx:]
86
+ if (
87
+ " type: ignore" in comment_part
88
+ or " noqa" in comment_part
89
+ or " nosec" in comment_part
90
+ ):
91
+ new_lines.append(line)
92
+ else:
93
+ if code_part:
94
+ new_lines.append(code_part)
91
95
  else:
92
- if code_part:
93
- new_lines.append(code_part)
96
+ new_lines.append(line)
94
97
  return "\n".join(new_lines)
95
98
 
96
99
  def _is_triple_quoted(self, token_string: str) -> bool:
@@ -149,7 +149,7 @@ pythonPlatform = "Darwin"
149
149
 
150
150
  [project]
151
151
  name = "crackerjack"
152
- version = "0.15.3"
152
+ version = "0.15.5"
153
153
  description = "Default template for PDM package"
154
154
  requires-python = ">=3.13"
155
155
  readme = "README.md"
@@ -178,11 +178,11 @@ dependencies = [
178
178
  "autotyping>=24.9.0",
179
179
  "pre-commit>=4.2.0",
180
180
  "pytest>=8.3.5",
181
- "pydantic>=2.11.2",
181
+ "pydantic>=2.11.3",
182
182
  "pdm-bump>=0.9.12",
183
- "pdm>=2.23.0",
184
- "uv>=0.6.12",
185
- "pytest-cov>=6.1.0",
183
+ "pdm>=2.24.0",
184
+ "uv>=0.6.14",
185
+ "pytest-cov>=6.1.1",
186
186
  "pytest-mock>=3.14.0",
187
187
  "tomli-w>=1.2.0",
188
188
  "pytest-asyncio>=0.26.0",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crackerjack
3
- Version: 0.15.4
3
+ Version: 0.15.6
4
4
  Summary: Default template for PDM package
5
5
  Keywords: black,ruff,mypy,creosote,refurb
6
6
  Author-Email: lesleslie <les@wedgwoodwebworks.com>
@@ -25,11 +25,11 @@ Requires-Python: >=3.13
25
25
  Requires-Dist: autotyping>=24.9.0
26
26
  Requires-Dist: pre-commit>=4.2.0
27
27
  Requires-Dist: pytest>=8.3.5
28
- Requires-Dist: pydantic>=2.11.2
28
+ Requires-Dist: pydantic>=2.11.3
29
29
  Requires-Dist: pdm-bump>=0.9.12
30
- Requires-Dist: pdm>=2.23.0
31
- Requires-Dist: uv>=0.6.12
32
- Requires-Dist: pytest-cov>=6.1.0
30
+ Requires-Dist: pdm>=2.24.0
31
+ Requires-Dist: uv>=0.6.14
32
+ Requires-Dist: pytest-cov>=6.1.1
33
33
  Requires-Dist: pytest-mock>=3.14.0
34
34
  Requires-Dist: tomli-w>=1.2.0
35
35
  Requires-Dist: pytest-asyncio>=0.26.0
@@ -1,12 +1,12 @@
1
- crackerjack-0.15.4.dist-info/METADATA,sha256=aDzdHhv_f4IKJhrNBuYc53hl0VF0geyhAAM0ZEyoXyA,12863
2
- crackerjack-0.15.4.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- crackerjack-0.15.4.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- crackerjack-0.15.4.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
1
+ crackerjack-0.15.6.dist-info/METADATA,sha256=uXDaCRy4dwRiE43miTNYmDOSj13aSe0O8Jybvm7dr0s,12863
2
+ crackerjack-0.15.6.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ crackerjack-0.15.6.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ crackerjack-0.15.6.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
5
5
  crackerjack/.coverage,sha256=dLzPzp72qZEXohNfxnOAlRwvM9dqF06-HoFqfvXZd1U,53248
6
6
  crackerjack/.gitignore,sha256=ts3GBu94chiwTyOCNCMHau9M8XGrd1yajyHPAMo_Z84,219
7
7
  crackerjack/.libcst.codemod.yaml,sha256=a8DlErRAIPV1nE6QlyXPAzTOgkB24_spl2E9hphuf5s,772
8
8
  crackerjack/.pdm.toml,sha256=dZe44HRcuxxCFESGG8SZIjmc-cGzSoyK3Hs6t4NYA8w,23
9
- crackerjack/.pre-commit-config.yaml,sha256=e6XmIrzRP_dJNnqKYv34iQ58nC9lPcVQvXUlsClRQgo,2456
9
+ crackerjack/.pre-commit-config.yaml,sha256=mpTonkoUwZAvITz6yzpsm-PTsKub8SUELz35V6leUlo,2456
10
10
  crackerjack/.pytest_cache/.gitignore,sha256=Ptcxtl0GFQwTji2tsL4Gl1UIiKa0frjEXsya26i46b0,37
11
11
  crackerjack/.pytest_cache/CACHEDIR.TAG,sha256=N9yI75oKvt2-gQU6bdj9-xOvthMEXqHrSlyBWnSjveQ,191
12
12
  crackerjack/.pytest_cache/README.md,sha256=c_1vzN2ALEGaay2YPWwxc7fal1WKxLWJ7ewt_kQ9ua0,302
@@ -20,7 +20,9 @@ crackerjack/.ruff_cache/0.1.6/15140459877605758699,sha256=oQy5boAXeskdm5M0Abh_ny
20
20
  crackerjack/.ruff_cache/0.1.7/1790508110482614856,sha256=De7Puq32XF0925xrGehWSKX6cw5Wi2bpt1cnqh__f54,248
21
21
  crackerjack/.ruff_cache/0.1.9/17041001205004563469,sha256=tKP_k8HaHhQJyrHbDfJ93kM7vahjrU8cKQ1f_-OUzZY,248
22
22
  crackerjack/.ruff_cache/0.11.2/4070660268492669020,sha256=FTRTUmvj6nZw_QQBp_WHI-h3_iqRejzL39api-9wTvs,224
23
- crackerjack/.ruff_cache/0.11.3/9818742842212983150,sha256=pkrMAL9YelkOgfMP8x7vhT89qf43d4y4kpaxnHUv_34,224
23
+ crackerjack/.ruff_cache/0.11.3/9818742842212983150,sha256=U-4mT__a-OljovvAJvv5M6X7TCMa3dReLXx3kTNGgwU,224
24
+ crackerjack/.ruff_cache/0.11.4/9818742842212983150,sha256=QF9j6-3MH_d0pDNotdbF2hlqCL66SxN8OLVKR3PZyZU,224
25
+ crackerjack/.ruff_cache/0.11.6/3557596832929915217,sha256=yR2iXWDkSHVRw2eTiaCE8Eh34JPRUGc8vE3HYEEBk9k,224
24
26
  crackerjack/.ruff_cache/0.2.0/10047773857155985907,sha256=j9LNa_RQ4Plor7go1uTYgz17cEENKvZQ-dP6b9MX0ik,248
25
27
  crackerjack/.ruff_cache/0.2.1/8522267973936635051,sha256=u_aPBMibtAp_iYvLwR88GMAECMcIgHezxMyuapmU2P4,248
26
28
  crackerjack/.ruff_cache/0.2.2/18053836298936336950,sha256=Xb_ebP0pVuUfSqPEZKlhQ70so_vqkEfMYpuHQ06iR5U,248
@@ -50,6 +52,6 @@ crackerjack/.ruff_cache/0.9.9/8843823720003377982,sha256=e4ymkXfQsUg5e_mtO34xTsa
50
52
  crackerjack/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
51
53
  crackerjack/__init__.py,sha256=r9SuEjHUrW99hFWifRk4ofmYPSgf9rblcnzqhdV5bP0,157
52
54
  crackerjack/__main__.py,sha256=iwoUyUB9j3e5lC5ViNAqW00eeoIx0xljNmWC04AiPaw,3707
53
- crackerjack/crackerjack.py,sha256=1hvSiBTV7QEOVAR10Y36JPbQl_fYOIhdo5Fp8FVh7lw,22359
54
- crackerjack/pyproject.toml,sha256=IvgXNP5cSn5iAFcc0QAS3Xke6tDmxIjicazUEhAFwEk,4089
55
- crackerjack-0.15.4.dist-info/RECORD,,
55
+ crackerjack/crackerjack.py,sha256=vyE3Ja42FmIlQMO10F1qBgl2KbSqMtTO4qs-HnW7kAk,22503
56
+ crackerjack/pyproject.toml,sha256=AWWGX-slosd-OW5KpuTZXY0-rslMa-ZYec2jQiPh1DU,4089
57
+ crackerjack-0.15.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.3)
2
+ Generator: pdm-backend (2.4.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any