crackerjack 0.8.12__tar.gz → 0.8.13__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 crackerjack might be problematic. Click here for more details.
- {crackerjack-0.8.12 → crackerjack-0.8.13}/PKG-INFO +3 -3
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.pre-commit-config.yaml +4 -4
- crackerjack-0.8.13/crackerjack/.ruff_cache/0.5.7/6231957614044513175 +0 -0
- crackerjack-0.8.13/crackerjack/.ruff_cache/0.5.7/9932762556785938009 +0 -0
- crackerjack-0.8.13/crackerjack/.ruff_cache/0.6.0/11982804814124138945 +0 -0
- crackerjack-0.8.13/crackerjack/.ruff_cache/0.6.0/12055761203849489982 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/crackerjack.py +23 -21
- {crackerjack-0.8.12 → crackerjack-0.8.13/crackerjack}/pyproject.toml +6 -3
- {crackerjack-0.8.12/crackerjack → crackerjack-0.8.13}/pyproject.toml +7 -4
- {crackerjack-0.8.12 → crackerjack-0.8.13}/LICENSE +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/README.md +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.gitignore +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.libcst.codemod.yaml +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/.gitignore +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.11/3256171999636029978 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.14/602324811142551221 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.4/10355199064880463147 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.6/15140459877605758699 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.7/1790508110482614856 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.9/17041001205004563469 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.2.0/10047773857155985907 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.2.1/8522267973936635051 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.2.2/18053836298936336950 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.3.0/12548816621480535786 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.3.3/11081883392474770722 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.3.4/676973378459347183 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.3.5/16311176246009842383 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.5.7/1493622539551733492 +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/CACHEDIR.TAG +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/__init__.py +0 -0
- {crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/__main__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Crackerjack
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.13
|
|
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.
|
|
34
|
+
Requires-Dist: acb>=0.6.20
|
|
35
35
|
Requires-Dist: pdm-bump>=0.9.0
|
|
36
|
-
Requires-Dist: pdm>=2.
|
|
36
|
+
Requires-Dist: pdm>=2.18.1
|
|
37
37
|
Description-Content-Type: text/markdown
|
|
38
38
|
|
|
39
39
|
# Crackerjack Python
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
repos:
|
|
2
2
|
- repo: https://github.com/pdm-project/pdm
|
|
3
|
-
rev: 2.
|
|
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.
|
|
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.
|
|
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.
|
|
68
|
+
rev: v0.6.0
|
|
69
69
|
hooks:
|
|
70
70
|
- id: ruff
|
|
71
71
|
- id: ruff-format
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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 =
|
|
140
|
+
check_all = shell([str(self.config.pre_commit_path), "run", "--all-files"])
|
|
139
141
|
if check_all.returncode > 0:
|
|
140
|
-
check_all =
|
|
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
|
-
|
|
157
|
+
shell([str(self.config.pdm_path), "install"])
|
|
156
158
|
if self.pkg_path.stem == "crackerjack" and options.update_precommit:
|
|
157
|
-
|
|
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
|
-
|
|
166
|
+
shell([str(self.config.pdm_path), "bump", option])
|
|
165
167
|
break
|
|
166
168
|
if options.publish:
|
|
167
|
-
|
|
169
|
+
shell([str(self.config.pdm_path), "publish"])
|
|
168
170
|
if options.commit:
|
|
169
171
|
commit_msg = await ainput("\nCommit message: ")
|
|
170
|
-
|
|
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
|
-
|
|
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 =
|
|
44
|
+
max-complexity = 12
|
|
45
45
|
|
|
46
46
|
[tool.ruff.lint.pydocstyle]
|
|
47
47
|
convention = "google"
|
|
@@ -67,6 +67,9 @@ target = [
|
|
|
67
67
|
"crackerjack",
|
|
68
68
|
]
|
|
69
69
|
skips = [
|
|
70
|
+
"B301",
|
|
71
|
+
"B311",
|
|
72
|
+
"B403",
|
|
70
73
|
"B404",
|
|
71
74
|
"B603",
|
|
72
75
|
]
|
|
@@ -129,9 +132,9 @@ dependencies = [
|
|
|
129
132
|
"pytest>=8.3.2",
|
|
130
133
|
"pydantic>=2.8.2",
|
|
131
134
|
"aiopath>=0.7.7",
|
|
132
|
-
"acb>=0.6.
|
|
135
|
+
"acb>=0.6.20",
|
|
133
136
|
"pdm-bump>=0.9.0",
|
|
134
|
-
"pdm>=2.
|
|
137
|
+
"pdm>=2.18.1",
|
|
135
138
|
]
|
|
136
139
|
authors = [
|
|
137
140
|
{ name = "lesleslie", email = "les@wedgwoodwebworks.com" },
|
|
@@ -41,7 +41,7 @@ no-lines-before = [
|
|
|
41
41
|
]
|
|
42
42
|
|
|
43
43
|
[tool.ruff.lint.mccabe]
|
|
44
|
-
max-complexity =
|
|
44
|
+
max-complexity = 12
|
|
45
45
|
|
|
46
46
|
[tool.ruff.lint.pydocstyle]
|
|
47
47
|
convention = "google"
|
|
@@ -67,6 +67,9 @@ target = [
|
|
|
67
67
|
"crackerjack",
|
|
68
68
|
]
|
|
69
69
|
skips = [
|
|
70
|
+
"B301",
|
|
71
|
+
"B311",
|
|
72
|
+
"B403",
|
|
70
73
|
"B404",
|
|
71
74
|
"B603",
|
|
72
75
|
]
|
|
@@ -95,7 +98,7 @@ pythonPlatform = "Darwin"
|
|
|
95
98
|
|
|
96
99
|
[project]
|
|
97
100
|
name = "Crackerjack"
|
|
98
|
-
version = "0.8.
|
|
101
|
+
version = "0.8.13"
|
|
99
102
|
description = "Crackerjack code style"
|
|
100
103
|
requires-python = ">=3.12"
|
|
101
104
|
readme = "README.md"
|
|
@@ -129,9 +132,9 @@ dependencies = [
|
|
|
129
132
|
"pytest>=8.3.2",
|
|
130
133
|
"pydantic>=2.8.2",
|
|
131
134
|
"aiopath>=0.7.7",
|
|
132
|
-
"acb>=0.6.
|
|
135
|
+
"acb>=0.6.20",
|
|
133
136
|
"pdm-bump>=0.9.0",
|
|
134
|
-
"pdm>=2.
|
|
137
|
+
"pdm>=2.18.1",
|
|
135
138
|
]
|
|
136
139
|
authors = [
|
|
137
140
|
{ name = "lesleslie", email = "les@wedgwoodwebworks.com" },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.11/3256171999636029978
RENAMED
|
File without changes
|
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.4/10355199064880463147
RENAMED
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.6/15140459877605758699
RENAMED
|
File without changes
|
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.1.9/17041001205004563469
RENAMED
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.2.0/10047773857155985907
RENAMED
|
File without changes
|
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.2.2/18053836298936336950
RENAMED
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.3.0/12548816621480535786
RENAMED
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.3.3/11081883392474770722
RENAMED
|
File without changes
|
|
File without changes
|
{crackerjack-0.8.12 → crackerjack-0.8.13}/crackerjack/.ruff_cache/0.3.5/16311176246009842383
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|