crackerjack 0.11.4__py3-none-any.whl → 0.11.5__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.22.3 # a PDM release exposing the hook
3
+ rev: 2.22.4 # 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.9.9
20
+ rev: v0.9.10
21
21
  hooks:
22
22
  - id: ruff-format
23
23
  - id: ruff
@@ -69,7 +69,7 @@ repos:
69
69
  hooks:
70
70
  - id: pyright
71
71
  - repo: https://github.com/astral-sh/ruff-pre-commit
72
- rev: v0.9.9
72
+ rev: v0.9.10
73
73
  hooks:
74
74
  - id: ruff
75
75
  - id: ruff-format
@@ -19,6 +19,14 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
19
19
  pkg_toml_path: t.Optional[Path] = None
20
20
  python_version: str = "3.13"
21
21
 
22
+ def swap_package_name(self, value: t.Any) -> t.Any:
23
+ if isinstance(value, list):
24
+ value.remove("crackerjack")
25
+ value.append(self.pkg_name)
26
+ elif isinstance(value, str):
27
+ value = value.replace("crackerjack", self.pkg_name)
28
+ return value
29
+
22
30
  def update_pyproject_configs(self) -> None:
23
31
  toml_file = "pyproject.toml"
24
32
  self.our_toml_path = self.our_path / toml_file
@@ -32,12 +40,15 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
32
40
  pkg_toml_config.setdefault("project", {})
33
41
  for tool, settings in our_toml_config["tool"].items():
34
42
  for setting, value in settings.items():
35
- if isinstance(value, str | list) and "crackerjack" in value:
36
- if isinstance(value, list):
37
- value.remove("crackerjack")
38
- value.append(self.pkg_name)
39
- else:
40
- value = value.replace("crackerjack", self.pkg_name)
43
+ if isinstance(value, dict):
44
+ for k, v in {
45
+ x: self.swap_package_name(y)
46
+ for x, y in value.items()
47
+ if isinstance(y, str | list) and "crackerjack" in y
48
+ }.items():
49
+ settings[setting][k] = v
50
+ elif isinstance(value, str | list) and "crackerjack" in value:
51
+ value = self.swap_package_name(value)
41
52
  settings[setting] = value
42
53
  if setting in (
43
54
  "exclude-deps",
@@ -119,7 +119,7 @@ pythonPlatform = "Darwin"
119
119
 
120
120
  [project]
121
121
  name = "crackerjack"
122
- version = "0.11.3"
122
+ version = "0.11.4"
123
123
  description = "Default template for PDM package"
124
124
  requires-python = ">=3.13"
125
125
  readme = "README.md"
@@ -151,8 +151,8 @@ dependencies = [
151
151
  "pytest>=8.3.5",
152
152
  "pydantic>=2.10.6",
153
153
  "pdm-bump>=0.9.10",
154
- "pdm>=2.22.3",
155
- "uv>=0.6.4",
154
+ "pdm>=2.22.4",
155
+ "uv>=0.6.5",
156
156
  "pytest-cov>=6.0.0",
157
157
  "pytest-mock>=3.14.0",
158
158
  "tomli-w>=1.2.0",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crackerjack
3
- Version: 0.11.4
3
+ Version: 0.11.5
4
4
  Summary: Default template for PDM package
5
5
  Keywords: black,ruff,mypy,creosote,refurb
6
6
  Author-Email: lesleslie <les@wedgwoodwebworks.com>
@@ -28,8 +28,8 @@ Requires-Dist: pre-commit>=4.1.0
28
28
  Requires-Dist: pytest>=8.3.5
29
29
  Requires-Dist: pydantic>=2.10.6
30
30
  Requires-Dist: pdm-bump>=0.9.10
31
- Requires-Dist: pdm>=2.22.3
32
- Requires-Dist: uv>=0.6.4
31
+ Requires-Dist: pdm>=2.22.4
32
+ Requires-Dist: uv>=0.6.5
33
33
  Requires-Dist: pytest-cov>=6.0.0
34
34
  Requires-Dist: pytest-mock>=3.14.0
35
35
  Requires-Dist: tomli-w>=1.2.0
@@ -1,11 +1,11 @@
1
- crackerjack-0.11.4.dist-info/METADATA,sha256=sscYWhgl7F0TpE_pcQqrLV_882tSTQEYM1ipKOwBPys,6322
2
- crackerjack-0.11.4.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- crackerjack-0.11.4.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- crackerjack-0.11.4.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
1
+ crackerjack-0.11.5.dist-info/METADATA,sha256=f9CZySoB5utKVKmDarf9AZJN6qPmn2Mm2CWK8Y1IC78,6322
2
+ crackerjack-0.11.5.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ crackerjack-0.11.5.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ crackerjack-0.11.5.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
5
5
  crackerjack/.gitignore,sha256=7qePRaD8q-U6oV3gvgAcwFF8GudcRGAWf-Z-0IDqMaE,207
6
6
  crackerjack/.libcst.codemod.yaml,sha256=a8DlErRAIPV1nE6QlyXPAzTOgkB24_spl2E9hphuf5s,772
7
7
  crackerjack/.pdm.toml,sha256=dZe44HRcuxxCFESGG8SZIjmc-cGzSoyK3Hs6t4NYA8w,23
8
- crackerjack/.pre-commit-config.yaml,sha256=MdCTkavvr84yaP8B3DYuSjCfR_X4q3tpDO8yZAR5t9s,2265
8
+ crackerjack/.pre-commit-config.yaml,sha256=cLIzulHerHmCHjo5UWA2JAMm5d5PjwGpIp5Lx-nL3FQ,2267
9
9
  crackerjack/.ruff_cache/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
10
10
  crackerjack/.ruff_cache/0.1.11/3256171999636029978,sha256=-RLDsRf5uj09SyFQVzjwQ1HkTxjIRxNLLE24SEJxD4g,248
11
11
  crackerjack/.ruff_cache/0.1.14/602324811142551221,sha256=HIYvldb69IHdMzquAA8JpzU2RDT9shEB_dPvzyeFZ_g,248
@@ -34,11 +34,12 @@ crackerjack/.ruff_cache/0.7.1/1024065805990144819,sha256=3Sww592NB0PWBNHU_UIqvqg
34
34
  crackerjack/.ruff_cache/0.7.1/285614542852677309,sha256=mOHKRzKoSvW-1sHtqI_LHWRt-mBinJ4rQRtp9Yqzv5I,224
35
35
  crackerjack/.ruff_cache/0.7.3/16061516852537040135,sha256=AWJR9gmaO7-wpv8mY1homuwI8CrMPI3VrnbXH-wRPlg,224
36
36
  crackerjack/.ruff_cache/0.8.4/16354268377385700367,sha256=Ksz4X8N6Z1i83N0vV1PxmBRlqgjrtzmDCOg7VBF4baQ,224
37
+ crackerjack/.ruff_cache/0.9.10/12813592349865671909,sha256=ldMwLaNkbnHdYZ--2ZUY2m3bQYMzb4jGM-hSInG5_ns,224
37
38
  crackerjack/.ruff_cache/0.9.3/13948373885254993391,sha256=kGhtIkzPUtKAgvlKs3D8j4QM4qG8RhsHrmQJI69Sv3o,224
38
- crackerjack/.ruff_cache/0.9.9/12813592349865671909,sha256=RfNLBMX23ATK_GzSmnPl0h8AsUG9sZU3GwPCsVHe2FU,224
39
+ crackerjack/.ruff_cache/0.9.9/12813592349865671909,sha256=tmr8_vhRD2OxsVuMfbJPdT9fDFX-d5tfC5U9jgziyho,224
39
40
  crackerjack/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
40
41
  crackerjack/__init__.py,sha256=AuglbbJHkUJ2GdvyT0ca35ntexo1RkT2V6DgypoFeEk,121
41
42
  crackerjack/__main__.py,sha256=3TrS-Hejbx315O558j3MI2L59VX0Y6t0tz5L41NTVG0,1738
42
- crackerjack/crackerjack.py,sha256=Aa5Mb0p63W2AG0rcYzU1H2iez-z42eGqDP3dWPRbh9A,6693
43
- crackerjack/pyproject.toml,sha256=DMmVRWWGE0KWuaO_DrGp8YhqheIiaZim9ArfoGH_waw,3398
44
- crackerjack-0.11.4.dist-info/RECORD,,
43
+ crackerjack/crackerjack.py,sha256=ePnEsTeYOJjcioAEcdz29QtzxNZTIo6pxG8M18qwv_w,7131
44
+ crackerjack/pyproject.toml,sha256=JgzJh4A6DvjIWNP4VxkeGLZ--P5uzFrkeuC4mRBRZ04,3398
45
+ crackerjack-0.11.5.dist-info/RECORD,,