crackerjack 0.8.1__py3-none-any.whl → 0.8.3__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.

@@ -4,7 +4,7 @@ generated_code_marker: '@generated'
4
4
  # Command line and arguments for invoking a code formatter. Anything
5
5
  # specified here must be capable of taking code via stdin and returning
6
6
  # formatted code via stdout.
7
- formatter: [ 'black', '-' ]
7
+ formatter: [ 'ruff', 'format' ]
8
8
  # List of regex patterns which LibCST will evaluate against filenames to
9
9
  # determine if the module should be touched.
10
10
  blacklist_patterns: [ ]
@@ -22,7 +22,7 @@ repos:
22
22
  - id: ruff-format
23
23
  - id: ruff
24
24
  - repo: https://github.com/fredrikaverpil/creosote
25
- rev: v3.0.0
25
+ rev: v3.0.1
26
26
  hooks:
27
27
  - id: creosote
28
28
  - repo: https://github.com/ikamensh/flynt/
@@ -39,20 +39,18 @@ repos:
39
39
  hooks:
40
40
  - id: autotyping
41
41
  name: autotyping
42
- entry: python -m libcst.tool codemod autotyping.AutotypeCommand
42
+ entry: python -m autotyping
43
43
  args:
44
44
  - --aggressive
45
45
  - --only-without-imports
46
- - --show-successes
47
- - --include-generated
48
46
  - --guess-common-names
49
47
  - crackerjack
50
48
  types_or: [ python, pyi ]
51
49
  language: python
52
50
  files: \.py$
53
51
  additional_dependencies:
54
- - autotyping>=23.3.0
55
- - libcst>=0.4.9
52
+ - autotyping>=24.3.0
53
+ - libcst>=1.1.0
56
54
  - repo: https://github.com/dosisod/refurb
57
55
  rev: v2.0.0
58
56
  hooks:
crackerjack/__main__.py CHANGED
@@ -3,7 +3,6 @@ import typing as t
3
3
 
4
4
  from click import command, help_option, option
5
5
  from pydantic import BaseModel
6
-
7
6
  from crackerjack import crackerjack_it
8
7
 
9
8
 
@@ -84,6 +84,9 @@ class Crackerjack(BaseModel, arbitrary_types_allowed=True):
84
84
  if self.pkg_path.stem == "crackerjack":
85
85
  await config_path.write_text(await pkg_config_path.read_text())
86
86
  continue
87
+ await pkg_config_path.write_text(
88
+ (await config_path.read_text()).replace("crackerjack", self.pkg_name)
89
+ )
87
90
  run([str(self.config.git_path), "add", config])
88
91
 
89
92
  async def run_interactive(self, hook: str) -> None:
@@ -40,6 +40,15 @@ extend-select = [
40
40
  "D",
41
41
  ]
42
42
 
43
+ [tool.ruff.lint.isort]
44
+ no-lines-before = [
45
+ "first-party",
46
+ "local-folder",
47
+ ]
48
+
49
+ [tool.ruff.lint.mccabe]
50
+ max-complexity = 11
51
+
43
52
  [tool.ruff.lint.pydocstyle]
44
53
  convention = "google"
45
54
 
@@ -89,7 +98,7 @@ pythonPlatform = "Darwin"
89
98
 
90
99
  [project]
91
100
  name = "Crackerjack"
92
- version = "0.8.0"
101
+ version = "0.8.2"
93
102
  description = "Crackerjack code style"
94
103
  requires-python = ">=3.12"
95
104
  readme = "README.md"
@@ -121,11 +130,11 @@ dependencies = [
121
130
  "autotyping>=24.3.0",
122
131
  "pre-commit>=3.7.1",
123
132
  "pytest>=8.2.1",
124
- "pydantic>=2.7.1",
133
+ "pydantic>=2.7.2",
125
134
  "aiopath>=0.7.7",
126
- "acb>=0.6.0",
135
+ "acb>=0.6.2",
127
136
  "pdm-bump>=0.9.0",
128
- "pdm>=2.15.2",
137
+ "pdm>=2.15.4",
129
138
  ]
130
139
  authors = [
131
140
  { name = "lesleslie", email = "les@wedgwoodwebworks.com" },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Crackerjack
3
- Version: 0.8.1
3
+ Version: 0.8.3
4
4
  Summary: Crackerjack code style
5
5
  Keywords: black,ruff,mypy,creosote,refurb
6
6
  Home-page: https://github.com/lesleslie/crackerjack
@@ -29,11 +29,11 @@ Requires-Dist: inflection>=0.5.1
29
29
  Requires-Dist: autotyping>=24.3.0
30
30
  Requires-Dist: pre-commit>=3.7.1
31
31
  Requires-Dist: pytest>=8.2.1
32
- Requires-Dist: pydantic>=2.7.1
32
+ Requires-Dist: pydantic>=2.7.2
33
33
  Requires-Dist: aiopath>=0.7.7
34
- Requires-Dist: acb>=0.6.0
34
+ Requires-Dist: acb>=0.6.2
35
35
  Requires-Dist: pdm-bump>=0.9.0
36
- Requires-Dist: pdm>=2.15.2
36
+ Requires-Dist: pdm>=2.15.4
37
37
  Description-Content-Type: text/markdown
38
38
 
39
39
  # Crackerjack Python
@@ -1,9 +1,9 @@
1
- crackerjack-0.8.1.dist-info/METADATA,sha256=Q717NRC-wsQc1kx55v3Fyfb1K-2ZT7joZYgFVxtmG7I,7760
2
- crackerjack-0.8.1.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
- crackerjack-0.8.1.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
1
+ crackerjack-0.8.3.dist-info/METADATA,sha256=1PgDxZVuYZKiHElHfLIj2UHo4l5VDZSk86Wxk0LyvoI,7760
2
+ crackerjack-0.8.3.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
+ crackerjack-0.8.3.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
4
4
  crackerjack/.gitignore,sha256=aJ2x3-AcCEcaW_quI-j8RtOUcTqGNoLJGMq8mZ3lTrA,197
5
- crackerjack/.libcst.codemod.yaml,sha256=TLE_I07llPTYk_tm36z-hN15O3X27qztNdJ3Ev9ODMk,768
6
- crackerjack/.pre-commit-config.yaml,sha256=GgKMGwkKt_OtYNE2UpQ-hXXHkJTO-viRKJY2gYdv4GE,2264
5
+ crackerjack/.libcst.codemod.yaml,sha256=a8DlErRAIPV1nE6QlyXPAzTOgkB24_spl2E9hphuf5s,772
6
+ crackerjack/.pre-commit-config.yaml,sha256=Ygo5da71vRXPzy7n61TZedKT8tolbxVZyMcD9calnA0,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
@@ -20,7 +20,7 @@ crackerjack/.ruff_cache/0.3.4/676973378459347183,sha256=qQXG3ByXNuDvpqAhrhjcQVJY
20
20
  crackerjack/.ruff_cache/0.3.5/16311176246009842383,sha256=1jdzqow8vaK7V6TGKnAFbiL-JUeOUjP8XgYifP1Tg5s,248
21
21
  crackerjack/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
22
22
  crackerjack/__init__.py,sha256=AuglbbJHkUJ2GdvyT0ca35ntexo1RkT2V6DgypoFeEk,121
23
- crackerjack/__main__.py,sha256=KF-AnEzQgY18ijVQsX11f8BgiWnfCEIqhn_URddKDec,1767
24
- crackerjack/crackerjack.py,sha256=jYzZLsqUYZWaLhe9RG375Y6Ij5jDCWg_Km8gLsEX2Iw,7906
25
- crackerjack/pyproject.toml,sha256=MJNkWXS_GUfL7wkh8Nh_TWFgBcvO-nF6W7mAQP6WmzQ,2799
26
- crackerjack-0.8.1.dist-info/RECORD,,
23
+ crackerjack/__main__.py,sha256=W0KSo35_rmj_p4Zr2Q6FAvojiiPTmh5kjlggVNcOdac,1766
24
+ crackerjack/crackerjack.py,sha256=yMjXzMlXp_3HcnJqjplVMRQ3819LHI55Eaf9UtpMStE,8052
25
+ crackerjack/pyproject.toml,sha256=P9J7FvlM2Bdzz7eNytG4oCK0_nvEZbVSPZZEcgjXl_Y,2929
26
+ crackerjack-0.8.3.dist-info/RECORD,,