crackerjack 0.8.12__py3-none-any.whl → 0.8.14__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 crackerjack might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/pdm-project/pdm
3
- rev: 2.17.3 # a PDM release exposing the hook
3
+ rev: 2.18.1 # a PDM release exposing the hook
4
4
  hooks:
5
5
  - id: pdm-lock-check
6
6
  - repo: https://github.com/pre-commit/pre-commit-hooks
@@ -17,7 +17,7 @@ repos:
17
17
  - id: check-added-large-files
18
18
  name: check-added-large-files
19
19
  - repo: https://github.com/astral-sh/ruff-pre-commit
20
- rev: v0.5.7
20
+ rev: v0.6.0
21
21
  hooks:
22
22
  - id: ruff-format
23
23
  - id: ruff
@@ -61,11 +61,11 @@ repos:
61
61
  - id: bandit
62
62
  args: ["-c", "pyproject.toml"]
63
63
  - repo: https://github.com/RobertCraigie/pyright-python
64
- rev: v1.1.375
64
+ rev: v1.1.376
65
65
  hooks:
66
66
  - id: pyright
67
67
  - repo: https://github.com/astral-sh/ruff-pre-commit
68
- rev: v0.5.7
68
+ rev: v0.6.0
69
69
  hooks:
70
70
  - id: ruff
71
71
  - id: ruff-format
@@ -3,7 +3,7 @@ import re
3
3
  import sys
4
4
  import typing as t
5
5
  from pathlib import Path
6
- from subprocess import run
6
+ from subprocess import run as shell
7
7
 
8
8
  from acb.actions.encode import dump, load
9
9
  from aioconsole import ainput, aprint
@@ -59,7 +59,7 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
59
59
  "ignore",
60
60
  ) and isinstance(value, list):
61
61
  settings[setting] = set(
62
- pkg_toml_config["tool"][tool][setting] + value
62
+ our_toml_config["tool"][tool][setting] + value
63
63
  )
64
64
  pkg_toml_config["tool"][tool] = settings
65
65
  pkg_toml_config["tool"]["pdm"]["dev-dependencies"] = pkg_deps
@@ -90,12 +90,12 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
90
90
  "crackerjack", self.pkg_name
91
91
  )
92
92
  )
93
- run([str(self.config.git_path), "add", config])
93
+ shell([str(self.config.git_path), "add", config])
94
94
 
95
95
  async def run_interactive(self, hook: str) -> None:
96
96
  success: bool = False
97
97
  while not success:
98
- fail = run(
98
+ fail = shell(
99
99
  [str(self.config.pre_commit_path), "run", hook.lower(), "--all-files"]
100
100
  )
101
101
  if fail.returncode > 0:
@@ -108,21 +108,23 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
108
108
 
109
109
  async def update_pkg_configs(self) -> None:
110
110
  await self.copy_configs()
111
- installed_pkgs = run(
111
+ installed_pkgs = shell(
112
112
  [str(self.config.pdm_path), "list", "--freeze"],
113
113
  capture_output=True,
114
114
  text=True,
115
115
  ).stdout.splitlines()
116
116
  if not len([pkg for pkg in installed_pkgs if "pre-commit" in pkg]):
117
117
  print('Installing "pre-commit"...')
118
- run([str(self.config.pdm_path), "self", "add", "keyring"])
119
- run([str(self.config.pdm_path), "config", "python.use_venv", "false"])
120
- run([str(self.config.git_path), "init"])
121
- run([str(self.config.git_path), "branch", "-m", "main"])
122
- run([str(self.config.git_path), "add", "pyproject.toml"])
123
- run([str(self.config.git_path), "add", "pdm.lock"])
124
- run([str(self.config.pre_commit_path), "install"])
125
- run([str(self.config.git_path), "config", "advice.addIgnoredFile", "false"])
118
+ shell([str(self.config.pdm_path), "self", "add", "keyring"])
119
+ shell([str(self.config.pdm_path), "config", "python.use_venv", "false"])
120
+ shell([str(self.config.git_path), "init"])
121
+ shell([str(self.config.git_path), "branch", "-m", "main"])
122
+ shell([str(self.config.git_path), "add", "pyproject.toml"])
123
+ shell([str(self.config.git_path), "add", "pdm.lock"])
124
+ shell([str(self.config.pre_commit_path), "install"])
125
+ shell(
126
+ [str(self.config.git_path), "config", "advice.addIgnoredFile", "false"]
127
+ )
126
128
  await self.update_pyproject_configs()
127
129
 
128
130
  async def load_config(self) -> None:
@@ -135,9 +137,9 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
135
137
  raise SystemExit("\nPlease configure '.crackerjack.yaml' and try again\n")
136
138
 
137
139
  async def run_pre_commit(self) -> None:
138
- check_all = run([str(self.config.pre_commit_path), "run", "--all-files"])
140
+ check_all = shell([str(self.config.pre_commit_path), "run", "--all-files"])
139
141
  if check_all.returncode > 0:
140
- check_all = run([str(self.config.pre_commit_path), "run", "--all-files"])
142
+ check_all = shell([str(self.config.pre_commit_path), "run", "--all-files"])
141
143
  if check_all.returncode > 0:
142
144
  await aprint("\n\nPre-commit failed. Please fix errors.\n")
143
145
  raise SystemExit()
@@ -152,22 +154,22 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
152
154
  await aprint("\nCrackerjacking...\n")
153
155
  if not options.do_not_update_configs:
154
156
  await self.update_pkg_configs()
155
- run([str(self.config.pdm_path), "install"])
157
+ shell([str(self.config.pdm_path), "install"])
156
158
  if self.pkg_path.stem == "crackerjack" and options.update_precommit:
157
- run([str(self.config.pre_commit_path), "autoupdate"])
159
+ shell([str(self.config.pre_commit_path), "autoupdate"])
158
160
  if options.interactive:
159
161
  for hook in ("refurb", "bandit", "pyright"):
160
162
  await self.run_interactive(hook)
161
163
  await self.run_pre_commit()
162
164
  for option in (options.publish, options.bump):
163
165
  if option:
164
- run([str(self.config.pdm_path), "bump", option])
166
+ shell([str(self.config.pdm_path), "bump", option])
165
167
  break
166
168
  if options.publish:
167
- run([str(self.config.pdm_path), "publish"])
169
+ shell([str(self.config.pdm_path), "publish"])
168
170
  if options.commit:
169
171
  commit_msg = await ainput("\nCommit message: ")
170
- run(
172
+ shell(
171
173
  [
172
174
  str(self.config.git_path),
173
175
  "commit",
@@ -178,7 +180,7 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
178
180
  ".",
179
181
  ]
180
182
  )
181
- run([str(self.config.git_path), "push", "origin", "main"])
183
+ shell([str(self.config.git_path), "push", "origin", "main"])
182
184
  await aprint("\nCrackerjack complete!\n")
183
185
 
184
186
  async def run(self, options: t.Any) -> None:
@@ -41,7 +41,7 @@ no-lines-before = [
41
41
  ]
42
42
 
43
43
  [tool.ruff.lint.mccabe]
44
- max-complexity = 11
44
+ max-complexity = 12
45
45
 
46
46
  [tool.ruff.lint.pydocstyle]
47
47
  convention = "google"
@@ -57,6 +57,8 @@ exclude-deps = [
57
57
  "pre-commit",
58
58
  "pytest",
59
59
  "pdm",
60
+ "pyfiglet",
61
+ "pyyaml",
60
62
  ]
61
63
 
62
64
  [tool.refurb]
@@ -67,6 +69,9 @@ target = [
67
69
  "crackerjack",
68
70
  ]
69
71
  skips = [
72
+ "B301",
73
+ "B311",
74
+ "B403",
70
75
  "B404",
71
76
  "B603",
72
77
  ]
@@ -95,7 +100,7 @@ pythonPlatform = "Darwin"
95
100
 
96
101
  [project]
97
102
  name = "Crackerjack"
98
- version = "0.8.11"
103
+ version = "0.8.13"
99
104
  description = "Crackerjack code style"
100
105
  requires-python = ">=3.12"
101
106
  readme = "README.md"
@@ -129,9 +134,9 @@ dependencies = [
129
134
  "pytest>=8.3.2",
130
135
  "pydantic>=2.8.2",
131
136
  "aiopath>=0.7.7",
132
- "acb>=0.6.17",
137
+ "acb>=0.6.20",
133
138
  "pdm-bump>=0.9.0",
134
- "pdm>=2.17.3",
139
+ "pdm>=2.18.1",
135
140
  ]
136
141
  authors = [
137
142
  { name = "lesleslie", email = "les@wedgwoodwebworks.com" },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Crackerjack
3
- Version: 0.8.12
3
+ Version: 0.8.14
4
4
  Summary: Crackerjack code style
5
5
  Keywords: black,ruff,mypy,creosote,refurb
6
6
  Home-page: https://github.com/lesleslie/crackerjack
@@ -31,9 +31,9 @@ Requires-Dist: pre-commit>=3.8.0
31
31
  Requires-Dist: pytest>=8.3.2
32
32
  Requires-Dist: pydantic>=2.8.2
33
33
  Requires-Dist: aiopath>=0.7.7
34
- Requires-Dist: acb>=0.6.17
34
+ Requires-Dist: acb>=0.6.20
35
35
  Requires-Dist: pdm-bump>=0.9.0
36
- Requires-Dist: pdm>=2.17.3
36
+ Requires-Dist: pdm>=2.18.1
37
37
  Description-Content-Type: text/markdown
38
38
 
39
39
  # Crackerjack Python
@@ -1,9 +1,9 @@
1
- crackerjack-0.8.12.dist-info/METADATA,sha256=6xBCojfM128L7gHQU9pX7mG2XqDbwaA5Ww0rkLMqX9A,7762
2
- crackerjack-0.8.12.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
3
- crackerjack-0.8.12.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
1
+ crackerjack-0.8.14.dist-info/METADATA,sha256=duM_lBxwiSr7re5s4MIknDiSc9vPlIb4iCsvEi9MaJE,7762
2
+ crackerjack-0.8.14.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
3
+ crackerjack-0.8.14.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
4
4
  crackerjack/.gitignore,sha256=7qePRaD8q-U6oV3gvgAcwFF8GudcRGAWf-Z-0IDqMaE,207
5
5
  crackerjack/.libcst.codemod.yaml,sha256=a8DlErRAIPV1nE6QlyXPAzTOgkB24_spl2E9hphuf5s,772
6
- crackerjack/.pre-commit-config.yaml,sha256=O3HdLy9I71b1DL0Ly0bHH4ULJ4F3XwM410A3HpruCL4,2167
6
+ crackerjack/.pre-commit-config.yaml,sha256=GuSMQqO36mziS_UpHxsW6HA9udY0LIZLe8Ai2vMN5iQ,2167
7
7
  crackerjack/.ruff_cache/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
8
8
  crackerjack/.ruff_cache/0.1.11/3256171999636029978,sha256=-RLDsRf5uj09SyFQVzjwQ1HkTxjIRxNLLE24SEJxD4g,248
9
9
  crackerjack/.ruff_cache/0.1.14/602324811142551221,sha256=HIYvldb69IHdMzquAA8JpzU2RDT9shEB_dPvzyeFZ_g,248
@@ -19,9 +19,13 @@ crackerjack/.ruff_cache/0.3.3/11081883392474770722,sha256=S9jhv2NNJwv6bi0JqfBMWc
19
19
  crackerjack/.ruff_cache/0.3.4/676973378459347183,sha256=qQXG3ByXNuDvpqAhrhjcQVJYeuyS1cBjIxyGgFlT6NI,248
20
20
  crackerjack/.ruff_cache/0.3.5/16311176246009842383,sha256=1jdzqow8vaK7V6TGKnAFbiL-JUeOUjP8XgYifP1Tg5s,248
21
21
  crackerjack/.ruff_cache/0.5.7/1493622539551733492,sha256=pSocPQAUIr0jKWiGFCL-guo-Wop2XDXNdJsjylo-ks4,224
22
+ crackerjack/.ruff_cache/0.5.7/6231957614044513175,sha256=cpMwivWK0bqQ1V4WO_D1Q-aZarbhf-r4sk4Po8oXZc4,224
23
+ crackerjack/.ruff_cache/0.5.7/9932762556785938009,sha256=OrAu-VJZI4ctEycJEplrzI2qXzgaxE5TPvj6IFVQSdw,224
24
+ crackerjack/.ruff_cache/0.6.0/11982804814124138945,sha256=2lznSj8cCUgunSBia8roQ-Cj5TBFiSoe0wIl7cDAiY8,224
25
+ crackerjack/.ruff_cache/0.6.0/12055761203849489982,sha256=AevZgasE3KEhREvp-T9d5xyBYt7QnNIPelA8e4GTzNw,224
22
26
  crackerjack/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
23
27
  crackerjack/__init__.py,sha256=AuglbbJHkUJ2GdvyT0ca35ntexo1RkT2V6DgypoFeEk,121
24
28
  crackerjack/__main__.py,sha256=W0KSo35_rmj_p4Zr2Q6FAvojiiPTmh5kjlggVNcOdac,1766
25
- crackerjack/crackerjack.py,sha256=rL_nfGJt4H6UA1-JlQOy0zR3USkoham-TJTFnfc9Ak8,8149
26
- crackerjack/pyproject.toml,sha256=arGqCTrF5cALRg2jOHYaiPurY8vECzEoZBXvoGZj_e4,2892
27
- crackerjack-0.8.12.dist-info/RECORD,,
29
+ crackerjack/crackerjack.py,sha256=Aqnn9ExIG8XLq0Sdv0gBdSzsROpYAUZdt2xwWf4ohAU,8226
30
+ crackerjack/pyproject.toml,sha256=xNw2Xai4HFhAabDks1BtS6rSmBfjna0uNTiDllm8nVs,2958
31
+ crackerjack-0.8.14.dist-info/RECORD,,