crackerjack 0.29.0__py3-none-any.whl → 0.30.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.
- crackerjack/__main__.py +48 -2
- crackerjack/code_cleaner.py +980 -0
- crackerjack/crackerjack.py +713 -1048
- crackerjack/dynamic_config.py +586 -0
- crackerjack/pyproject.toml +2 -1
- {crackerjack-0.29.0.dist-info → crackerjack-0.30.3.dist-info}/METADATA +2 -1
- crackerjack-0.30.3.dist-info/RECORD +16 -0
- crackerjack/.pre-commit-config-ai.yaml +0 -149
- crackerjack/.pre-commit-config-fast.yaml +0 -69
- crackerjack/.pre-commit-config.yaml +0 -114
- crackerjack-0.29.0.dist-info/RECORD +0 -17
- {crackerjack-0.29.0.dist-info → crackerjack-0.30.3.dist-info}/WHEEL +0 -0
- {crackerjack-0.29.0.dist-info → crackerjack-0.30.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
# AI-optimized pre-commit hooks for comprehensive analysis and structured output
|
|
2
|
-
# Designed for AI agent workflows with enhanced reporting and metrics
|
|
3
|
-
|
|
4
|
-
repos:
|
|
5
|
-
# Group 1: File Structure & Format Validation (parallel-safe, fast)
|
|
6
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
7
|
-
rev: v5.0.0
|
|
8
|
-
hooks:
|
|
9
|
-
- id: trailing-whitespace
|
|
10
|
-
name: trailing-whitespace
|
|
11
|
-
stages: [pre-commit]
|
|
12
|
-
- id: end-of-file-fixer
|
|
13
|
-
name: end-of-file-fixer
|
|
14
|
-
stages: [pre-commit]
|
|
15
|
-
- id: check-yaml
|
|
16
|
-
name: check-yaml
|
|
17
|
-
stages: [pre-commit]
|
|
18
|
-
- id: check-toml
|
|
19
|
-
name: check-toml
|
|
20
|
-
stages: [pre-commit]
|
|
21
|
-
- id: check-added-large-files
|
|
22
|
-
name: check-added-large-files
|
|
23
|
-
stages: [pre-commit]
|
|
24
|
-
|
|
25
|
-
# Group 2: Project Configuration Management
|
|
26
|
-
- repo: https://github.com/abravalheri/validate-pyproject
|
|
27
|
-
rev: v0.24.1
|
|
28
|
-
hooks:
|
|
29
|
-
- id: validate-pyproject
|
|
30
|
-
stages: [pre-commit]
|
|
31
|
-
|
|
32
|
-
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
33
|
-
rev: "v2.6.0"
|
|
34
|
-
hooks:
|
|
35
|
-
- id: pyproject-fmt
|
|
36
|
-
args: ["-n"]
|
|
37
|
-
stages: [pre-commit]
|
|
38
|
-
|
|
39
|
-
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
40
|
-
rev: 0.7.21
|
|
41
|
-
hooks:
|
|
42
|
-
- id: uv-lock
|
|
43
|
-
files: ^pyproject\.toml$
|
|
44
|
-
stages: [pre-commit]
|
|
45
|
-
|
|
46
|
-
# Group 3: Security (early detection, critical)
|
|
47
|
-
- repo: https://github.com/Yelp/detect-secrets
|
|
48
|
-
rev: v1.5.0
|
|
49
|
-
hooks:
|
|
50
|
-
- id: detect-secrets
|
|
51
|
-
exclude: 'uv\.lock|pyproject\.toml|tests/.*|docs/.*|.*\.md'
|
|
52
|
-
stages: [pre-commit]
|
|
53
|
-
|
|
54
|
-
# Group 4: Code Quality & Style (fast formatting)
|
|
55
|
-
- repo: https://github.com/codespell-project/codespell
|
|
56
|
-
rev: v2.4.1
|
|
57
|
-
hooks:
|
|
58
|
-
- id: codespell
|
|
59
|
-
additional_dependencies:
|
|
60
|
-
- tomli
|
|
61
|
-
stages: [pre-commit]
|
|
62
|
-
|
|
63
|
-
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
64
|
-
rev: v0.12.3
|
|
65
|
-
hooks:
|
|
66
|
-
- id: ruff-check
|
|
67
|
-
args: ["--output-format=json", "--fix"]
|
|
68
|
-
stages: [pre-commit]
|
|
69
|
-
- id: ruff-format
|
|
70
|
-
stages: [pre-commit]
|
|
71
|
-
|
|
72
|
-
- repo: https://github.com/executablebooks/mdformat
|
|
73
|
-
rev: 0.7.22
|
|
74
|
-
hooks:
|
|
75
|
-
- id: mdformat
|
|
76
|
-
additional_dependencies:
|
|
77
|
-
- mdformat-ruff
|
|
78
|
-
stages: [pre-commit]
|
|
79
|
-
|
|
80
|
-
# Group 5: Static Analysis (comprehensive, slower)
|
|
81
|
-
- repo: https://github.com/jendrikseipp/vulture
|
|
82
|
-
rev: 'v2.14'
|
|
83
|
-
hooks:
|
|
84
|
-
- id: vulture
|
|
85
|
-
args: ["--verbose"]
|
|
86
|
-
stages: [pre-commit]
|
|
87
|
-
|
|
88
|
-
- repo: https://github.com/fredrikaverpil/creosote
|
|
89
|
-
rev: v4.0.3
|
|
90
|
-
hooks:
|
|
91
|
-
- id: creosote
|
|
92
|
-
args: ["--verbose"]
|
|
93
|
-
stages: [pre-commit]
|
|
94
|
-
|
|
95
|
-
- repo: https://github.com/rohaquinlop/complexipy-pre-commit
|
|
96
|
-
rev: v3.0.0
|
|
97
|
-
hooks:
|
|
98
|
-
- id: complexipy
|
|
99
|
-
args: ["-d", "low", "--output-json", "complexipy.json"]
|
|
100
|
-
stages: [pre-commit]
|
|
101
|
-
|
|
102
|
-
- repo: https://github.com/dosisod/refurb
|
|
103
|
-
rev: v2.1.0
|
|
104
|
-
hooks:
|
|
105
|
-
- id: refurb
|
|
106
|
-
args: ["--quiet"]
|
|
107
|
-
stages: [pre-commit]
|
|
108
|
-
|
|
109
|
-
# Group 6: Type Checking & Enhancement (most expensive)
|
|
110
|
-
- repo: local
|
|
111
|
-
hooks:
|
|
112
|
-
- id: autotyping
|
|
113
|
-
name: autotyping
|
|
114
|
-
entry: python -m autotyping
|
|
115
|
-
args:
|
|
116
|
-
- --aggressive
|
|
117
|
-
- --only-without-imports
|
|
118
|
-
- --guess-common-names
|
|
119
|
-
- crackerjack
|
|
120
|
-
types_or: [ python, pyi ]
|
|
121
|
-
language: python
|
|
122
|
-
files: ^crackerjack/.*\.py$
|
|
123
|
-
stages: [pre-commit]
|
|
124
|
-
additional_dependencies:
|
|
125
|
-
- autotyping>=24.3.0
|
|
126
|
-
- libcst>=1.1.0
|
|
127
|
-
|
|
128
|
-
- repo: https://github.com/PyCQA/bandit
|
|
129
|
-
rev: '1.8.6'
|
|
130
|
-
hooks:
|
|
131
|
-
- id: bandit
|
|
132
|
-
args: ["-c", "pyproject.toml", "-f", "json", "-o", "bandit-report.json", "-r", "-ll"]
|
|
133
|
-
stages: [pre-commit]
|
|
134
|
-
|
|
135
|
-
- repo: https://github.com/RobertCraigie/pyright-python
|
|
136
|
-
rev: v1.1.403
|
|
137
|
-
hooks:
|
|
138
|
-
- id: pyright
|
|
139
|
-
args: ["--outputjson"]
|
|
140
|
-
stages: [pre-commit]
|
|
141
|
-
|
|
142
|
-
# Group 7: Documentation & Security Enhancement (AI-specific)
|
|
143
|
-
# pydocstyle temporarily disabled - conflicts with code cleaning functionality
|
|
144
|
-
# - repo: https://github.com/PyCQA/pydocstyle
|
|
145
|
-
# rev: 6.3.0
|
|
146
|
-
# hooks:
|
|
147
|
-
# - id: pydocstyle
|
|
148
|
-
# args: ["--config=pyproject.toml"]
|
|
149
|
-
# stages: [pre-commit]
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# Fast pre-commit hooks for development workflow (target: <5s total)
|
|
2
|
-
repos:
|
|
3
|
-
# Tier 1: Basic structure validation (1.5s)
|
|
4
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
-
rev: v5.0.0
|
|
6
|
-
hooks:
|
|
7
|
-
- id: trailing-whitespace
|
|
8
|
-
name: trailing-whitespace
|
|
9
|
-
stages: [pre-commit]
|
|
10
|
-
- id: end-of-file-fixer
|
|
11
|
-
name: end-of-file-fixer
|
|
12
|
-
stages: [pre-commit]
|
|
13
|
-
- id: check-yaml
|
|
14
|
-
name: check-yaml
|
|
15
|
-
stages: [pre-commit]
|
|
16
|
-
- id: check-toml
|
|
17
|
-
name: check-toml
|
|
18
|
-
stages: [pre-commit]
|
|
19
|
-
- id: check-added-large-files
|
|
20
|
-
name: check-added-large-files
|
|
21
|
-
stages: [pre-commit]
|
|
22
|
-
|
|
23
|
-
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
24
|
-
rev: "v2.6.0"
|
|
25
|
-
hooks:
|
|
26
|
-
- id: pyproject-fmt
|
|
27
|
-
args: ["-n"]
|
|
28
|
-
stages: [pre-commit]
|
|
29
|
-
|
|
30
|
-
# Tier 2: Package management (0.5s)
|
|
31
|
-
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
32
|
-
rev: 0.7.21
|
|
33
|
-
hooks:
|
|
34
|
-
- id: uv-lock
|
|
35
|
-
files: ^pyproject\.toml$
|
|
36
|
-
stages: [pre-commit]
|
|
37
|
-
|
|
38
|
-
# Tier 3: Security (early detection) (1s)
|
|
39
|
-
- repo: https://github.com/Yelp/detect-secrets
|
|
40
|
-
rev: v1.5.0
|
|
41
|
-
hooks:
|
|
42
|
-
- id: detect-secrets
|
|
43
|
-
exclude: 'uv\.lock|pyproject\.toml|tests/.*|docs/.*|.*\.md'
|
|
44
|
-
stages: [pre-commit]
|
|
45
|
-
|
|
46
|
-
# Tier 4: Quick formatting (1.5s)
|
|
47
|
-
- repo: https://github.com/codespell-project/codespell
|
|
48
|
-
rev: v2.4.1
|
|
49
|
-
hooks:
|
|
50
|
-
- id: codespell
|
|
51
|
-
additional_dependencies:
|
|
52
|
-
- tomli
|
|
53
|
-
stages: [pre-commit]
|
|
54
|
-
|
|
55
|
-
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
56
|
-
rev: v0.12.3
|
|
57
|
-
hooks:
|
|
58
|
-
- id: ruff-check
|
|
59
|
-
stages: [pre-commit]
|
|
60
|
-
- id: ruff-format
|
|
61
|
-
stages: [pre-commit]
|
|
62
|
-
|
|
63
|
-
- repo: https://github.com/executablebooks/mdformat
|
|
64
|
-
rev: 0.7.22
|
|
65
|
-
hooks:
|
|
66
|
-
- id: mdformat
|
|
67
|
-
additional_dependencies:
|
|
68
|
-
- mdformat-ruff
|
|
69
|
-
stages: [pre-commit]
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
repos:
|
|
2
|
-
# File structure and format validators - check structure first
|
|
3
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
-
rev: v5.0.0
|
|
5
|
-
hooks:
|
|
6
|
-
- id: trailing-whitespace
|
|
7
|
-
name: trailing-whitespace
|
|
8
|
-
- id: end-of-file-fixer
|
|
9
|
-
name: end-of-file-fixer
|
|
10
|
-
- id: check-yaml
|
|
11
|
-
name: check-yaml
|
|
12
|
-
- id: check-toml
|
|
13
|
-
name: check-toml
|
|
14
|
-
- id: check-added-large-files
|
|
15
|
-
name: check-added-large-files
|
|
16
|
-
|
|
17
|
-
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
18
|
-
rev: "v2.6.0"
|
|
19
|
-
hooks:
|
|
20
|
-
- id: pyproject-fmt
|
|
21
|
-
args: ["-n"]
|
|
22
|
-
|
|
23
|
-
# Package management - once structure is valid
|
|
24
|
-
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
25
|
-
rev: 0.7.21
|
|
26
|
-
hooks:
|
|
27
|
-
- id: uv-lock
|
|
28
|
-
files: ^pyproject\.toml$
|
|
29
|
-
|
|
30
|
-
# Security check - early to prevent credential leaks
|
|
31
|
-
- repo: https://github.com/Yelp/detect-secrets
|
|
32
|
-
rev: v1.5.0
|
|
33
|
-
hooks:
|
|
34
|
-
- id: detect-secrets
|
|
35
|
-
exclude: 'uv\.lock|pyproject\.toml|tests/.*|docs/.*|.*\.md'
|
|
36
|
-
|
|
37
|
-
# Code quality tier 1 - quick fixes
|
|
38
|
-
- repo: https://github.com/codespell-project/codespell
|
|
39
|
-
rev: v2.4.1
|
|
40
|
-
hooks:
|
|
41
|
-
- id: codespell
|
|
42
|
-
additional_dependencies:
|
|
43
|
-
- tomli
|
|
44
|
-
|
|
45
|
-
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
46
|
-
rev: v0.12.3
|
|
47
|
-
hooks:
|
|
48
|
-
- id: ruff-check
|
|
49
|
-
- id: ruff-format
|
|
50
|
-
|
|
51
|
-
- repo: https://github.com/executablebooks/mdformat
|
|
52
|
-
rev: 0.7.22
|
|
53
|
-
hooks:
|
|
54
|
-
- id: mdformat
|
|
55
|
-
additional_dependencies:
|
|
56
|
-
- mdformat-ruff
|
|
57
|
-
|
|
58
|
-
# Code quality tier 2 - analysis (moved to pre-push for performance)
|
|
59
|
-
- repo: https://github.com/jendrikseipp/vulture
|
|
60
|
-
rev: 'v2.14'
|
|
61
|
-
hooks:
|
|
62
|
-
- id: vulture
|
|
63
|
-
stages: [pre-push, manual]
|
|
64
|
-
|
|
65
|
-
- repo: https://github.com/fredrikaverpil/creosote
|
|
66
|
-
rev: v4.0.3
|
|
67
|
-
hooks:
|
|
68
|
-
- id: creosote
|
|
69
|
-
stages: [pre-push, manual]
|
|
70
|
-
|
|
71
|
-
- repo: https://github.com/rohaquinlop/complexipy-pre-commit
|
|
72
|
-
rev: v3.0.0
|
|
73
|
-
hooks:
|
|
74
|
-
- id: complexipy
|
|
75
|
-
args: ["-d", "low"]
|
|
76
|
-
stages: [pre-push, manual]
|
|
77
|
-
|
|
78
|
-
- repo: https://github.com/dosisod/refurb
|
|
79
|
-
rev: v2.1.0
|
|
80
|
-
hooks:
|
|
81
|
-
- id: refurb
|
|
82
|
-
stages: [pre-push, manual]
|
|
83
|
-
|
|
84
|
-
# Code quality tier 3 - thorough checks (moved to pre-push for performance)
|
|
85
|
-
- repo: local
|
|
86
|
-
hooks:
|
|
87
|
-
- id: autotyping
|
|
88
|
-
name: autotyping
|
|
89
|
-
entry: python -m autotyping
|
|
90
|
-
args:
|
|
91
|
-
- --aggressive
|
|
92
|
-
- --only-without-imports
|
|
93
|
-
- --guess-common-names
|
|
94
|
-
- crackerjack
|
|
95
|
-
types_or: [ python, pyi ]
|
|
96
|
-
language: python
|
|
97
|
-
files: ^crackerjack/.*\.py$
|
|
98
|
-
stages: [pre-push, manual]
|
|
99
|
-
additional_dependencies:
|
|
100
|
-
- autotyping>=24.3.0
|
|
101
|
-
- libcst>=1.1.0
|
|
102
|
-
|
|
103
|
-
- repo: https://github.com/PyCQA/bandit
|
|
104
|
-
rev: '1.8.6'
|
|
105
|
-
hooks:
|
|
106
|
-
- id: bandit
|
|
107
|
-
args: ["-c", "pyproject.toml", "-r", "-ll"]
|
|
108
|
-
stages: [pre-push, manual]
|
|
109
|
-
|
|
110
|
-
- repo: https://github.com/RobertCraigie/pyright-python
|
|
111
|
-
rev: v1.1.403
|
|
112
|
-
hooks:
|
|
113
|
-
- id: pyright
|
|
114
|
-
stages: [pre-push, manual]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
crackerjack/.gitignore,sha256=ELNEeIblDM1mKM-LJyj_iLcBzZJPbeJ89YXupvXuLug,498
|
|
2
|
-
crackerjack/.libcst.codemod.yaml,sha256=a8DlErRAIPV1nE6QlyXPAzTOgkB24_spl2E9hphuf5s,772
|
|
3
|
-
crackerjack/.pdm.toml,sha256=dZe44HRcuxxCFESGG8SZIjmc-cGzSoyK3Hs6t4NYA8w,23
|
|
4
|
-
crackerjack/.pre-commit-config-ai.yaml,sha256=IvD0WkglFacIxt-OwzMtwnjOr-i6NzdiazxpdnVH-Gg,4130
|
|
5
|
-
crackerjack/.pre-commit-config-fast.yaml,sha256=IpGHKznEfy-fhdOu-6nCWNa0-CpZ3CJf9YB-MKV8E4Y,1855
|
|
6
|
-
crackerjack/.pre-commit-config.yaml,sha256=UgPPAC7O_npBLGJkC_v_2YQUSEIOgsBOXzZjyW2hNvs,2987
|
|
7
|
-
crackerjack/__init__.py,sha256=8tBSPAru_YDuPpjz05cL7pNbZjYFoRT_agGd_FWa3gY,839
|
|
8
|
-
crackerjack/__main__.py,sha256=8Z--6fAGVpuhTXcE-oU4dABLywGY6QUav8AST_XQw0k,8851
|
|
9
|
-
crackerjack/crackerjack.py,sha256=wKFfoLcDYNJo-wusTknt0_FwFkZ_b0C5-RET0WZMUdk,161343
|
|
10
|
-
crackerjack/errors.py,sha256=Wcv0rXfzV9pHOoXYrhQEjyJd4kUUBbdiY-5M9nI8pDw,4050
|
|
11
|
-
crackerjack/interactive.py,sha256=JLeKnGbQSgACh20xjZTLVSJLGrU5xBAOHJt9bbshUyM,15911
|
|
12
|
-
crackerjack/py313.py,sha256=1imwWZUQwcZt09yIrnTSWr73ITTKH8yXlgIe2ESTeLA,5977
|
|
13
|
-
crackerjack/pyproject.toml,sha256=CQo9CGqrbN2z6_2CFYB1bje1XKbK9Wuc69fXdl9R7Hg,6912
|
|
14
|
-
crackerjack-0.29.0.dist-info/METADATA,sha256=dmHEuLKTqudL9pHMMs4Zm_ptjyOKZ8XILfUp0N28OKU,47758
|
|
15
|
-
crackerjack-0.29.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
-
crackerjack-0.29.0.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
|
|
17
|
-
crackerjack-0.29.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|