python-code-quality 0.1.9__py3-none-any.whl → 0.1.10__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.
- {python_code_quality-0.1.9.dist-info → python_code_quality-0.1.10.dist-info}/METADATA +39 -6
- {python_code_quality-0.1.9.dist-info → python_code_quality-0.1.10.dist-info}/RECORD +8 -9
- {python_code_quality-0.1.9.dist-info → python_code_quality-0.1.10.dist-info}/WHEEL +1 -1
- {python_code_quality-0.1.9.dist-info → python_code_quality-0.1.10.dist-info}/entry_points.txt +1 -0
- python_code_quality-0.1.9.dist-info/licenses/LICENSE +0 -21
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-code-quality
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.10
|
|
4
4
|
Summary: Python Code Quality Analysis Tool - feed the results from 11 CQ tools straight into an LLM. Minimal tokens.
|
|
5
|
-
|
|
6
|
-
Project-URL: Repository, https://github.com/rhiza-fr/py-cq
|
|
5
|
+
Author: Chris Kilner
|
|
7
6
|
Author-email: Chris Kilner <chris@rhiza.fr>
|
|
8
7
|
License-Expression: MIT
|
|
9
|
-
License-File: LICENSE
|
|
10
|
-
Requires-Python: >=3.12
|
|
11
8
|
Requires-Dist: bandit>=1.8.0
|
|
12
9
|
Requires-Dist: coverage>=7.8.2
|
|
13
10
|
Requires-Dist: diskcache>=5.6.3
|
|
14
11
|
Requires-Dist: interrogate>=1.7.0
|
|
12
|
+
Requires-Dist: pytest>=8.4.0
|
|
15
13
|
Requires-Dist: pytest-cov>=6.1.1
|
|
16
14
|
Requires-Dist: pytest-json-report>=1.5.0
|
|
17
|
-
Requires-Dist: pytest>=8.4.0
|
|
18
15
|
Requires-Dist: pyyaml>=6.0.2
|
|
19
16
|
Requires-Dist: radon>=6.0.1
|
|
20
17
|
Requires-Dist: rich>=14.0.0
|
|
@@ -22,6 +19,9 @@ Requires-Dist: ruff>=0.14.1
|
|
|
22
19
|
Requires-Dist: ty>=0.0.17
|
|
23
20
|
Requires-Dist: typer>=0.16.0
|
|
24
21
|
Requires-Dist: vulture>=2.14
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
|
+
Project-URL: Homepage, https://github.com/rhiza-fr/py-cq
|
|
24
|
+
Project-URL: Repository, https://github.com/rhiza-fr/py-cq
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
26
|
|
|
27
27
|
# CQ - Python Code Quality Analysis Tool
|
|
@@ -115,6 +115,39 @@ cq check . && deploy # block deploy on errors
|
|
|
115
115
|
cq check . -o score # print score, exit 1 on errors
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
+
## Claude Code Integration
|
|
119
|
+
|
|
120
|
+
Add a stop hook to your project's `.claude/settings.json` so Claude automatically checks quality after each session and loops until clean:
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"hooks": {
|
|
125
|
+
"Stop": [{
|
|
126
|
+
"matcher": "",
|
|
127
|
+
"hooks": [{"type": "command", "command": "cq check . -o score && echo 'CQ: all clear' || cq check . -o llm"}]
|
|
128
|
+
}]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
When the score passes, Claude sees `CQ: all clear` (~5 tokens). When it fails, Claude receives the targeted fix prompt and continues working. This automates the `cq check . -o llm | claude -p "fix this"` loop.
|
|
134
|
+
|
|
135
|
+
> **Note:** Use project-level `.claude/settings.json`, not global settings — this hook only makes sense in Python projects.
|
|
136
|
+
|
|
137
|
+
### As a slash command (skill)
|
|
138
|
+
|
|
139
|
+
For manual invocation, create `.claude/commands/cq-fix.md`:
|
|
140
|
+
|
|
141
|
+
```markdown
|
|
142
|
+
$(cq check . -o llm)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Then invoke it with `/cq-fix` in Claude Code. The `$(...)` embeds the live `cq` output directly into the prompt before Claude starts, so it sees the issue immediately without an extra tool call.
|
|
146
|
+
|
|
147
|
+
**Hook vs skill:**
|
|
148
|
+
- **Stop hook** — automatic, runs after every session, best for unattended loops
|
|
149
|
+
- **Skill** — manual `/cq-fix`, gives you explicit control over when to check
|
|
150
|
+
|
|
118
151
|
## Table output
|
|
119
152
|
|
|
120
153
|
```bash
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
py_cq/__init__.py,sha256=rS7kf1RU1zZskvJlkbZaMqEpdRYPspwDPAFbxzF3tXg,373
|
|
2
2
|
py_cq/cli.py,sha256=wu1GlxSDxS835i9-mO4-xmyBLfr6puU-ES-26T7Mty0,11007
|
|
3
|
+
py_cq/config/__init__.py,sha256=f0wc51O_3kGDTZUnCbGv8_zWnC5yYGl4NWcf2buSImQ,670
|
|
4
|
+
py_cq/config/config.yaml,sha256=R8CjZH8erBQSbJFKgHt-CCwD1Mgj6ZCGQ3OtWH0Ebig,2402
|
|
3
5
|
py_cq/context_hash.py,sha256=h-i7Rhd7AUfLv9SkQvE79bjJvTsm_ZwoVwSmUKXWmfM,2977
|
|
4
6
|
py_cq/execution_engine.py,sha256=tgNGFOO3h-EyetCEzC_RS2K-b9OkOFpOwGwrEAHIpZA,7477
|
|
5
7
|
py_cq/language_detector.py,sha256=6av5HaimcZ54RkN69xQmGgC0mxtTvGzPV3SL8NGG8Uc,1116
|
|
@@ -7,10 +9,6 @@ py_cq/llm_formatter.py,sha256=l74O5iqNWMR16789Xncoi93xOqgQJhW5IQK9_OyA9mE,1632
|
|
|
7
9
|
py_cq/localtypes.py,sha256=jCX1ZuwTixQooEk2N1Gi1XRuDcdBc2NlOdQBKysEybk,6128
|
|
8
10
|
py_cq/main.py,sha256=VKoXI8R8rB2fEROBYoTVURfinLqyh8XTNIIWAOtH7dw,380
|
|
9
11
|
py_cq/metric_aggregator.py,sha256=M2ymo62S7p7qPUqjjoiPg4IVyXQhLMuTr9-jxLiFjCY,853
|
|
10
|
-
py_cq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
py_cq/tool_registry.py,sha256=oMEkFHkU3gg5UpeGD4zHtynOYmWieRgDN5kTwZ5KsE8,1584
|
|
12
|
-
py_cq/config/__init__.py,sha256=f0wc51O_3kGDTZUnCbGv8_zWnC5yYGl4NWcf2buSImQ,670
|
|
13
|
-
py_cq/config/config.yaml,sha256=R8CjZH8erBQSbJFKgHt-CCwD1Mgj6ZCGQ3OtWH0Ebig,2402
|
|
14
12
|
py_cq/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
13
|
py_cq/parsers/banditparser.py,sha256=Ju_CkuXtkVn1Th9aQ6mv6fTUTpb9pc1YD8Nzt_nMgFQ,2326
|
|
16
14
|
py_cq/parsers/common.py,sha256=thbziNjqaf-SY3Y0W-KmPwzlcC-YCV98Z8jubUJM7_4,5203
|
|
@@ -27,8 +25,9 @@ py_cq/parsers/regexcountparser.py,sha256=KSoNh2spucXU06pxxr2QW0LrPLfJkFMAsmSgjoo
|
|
|
27
25
|
py_cq/parsers/ruffparser.py,sha256=ZdIya4sct2PrsOyfKfMGmXHLh3Qu7HtFqXNY9IuNFog,2275
|
|
28
26
|
py_cq/parsers/typarser.py,sha256=zrI0KS65MUGPxYPP74B6BRyTbjcPhKyQPjH2KZIyxN0,2495
|
|
29
27
|
py_cq/parsers/vultureparser.py,sha256=U6zC7P0ATA_N4SB90BahKF5QHMITf_z-NsOgrh_Q5rA,1995
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
python_code_quality-0.1.
|
|
33
|
-
python_code_quality-0.1.
|
|
34
|
-
python_code_quality-0.1.
|
|
28
|
+
py_cq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
|
+
py_cq/tool_registry.py,sha256=oMEkFHkU3gg5UpeGD4zHtynOYmWieRgDN5kTwZ5KsE8,1584
|
|
30
|
+
python_code_quality-0.1.10.dist-info/WHEEL,sha256=Y4JtJkdCWKLnDS7bvHXqjUWSsYTnJMN9TTubfHSxAyo,80
|
|
31
|
+
python_code_quality-0.1.10.dist-info/entry_points.txt,sha256=cfWbTw7eYO6Trv1-Z_odL6Zta9CqYU6Vk9lAHdfB60Q,40
|
|
32
|
+
python_code_quality-0.1.10.dist-info/METADATA,sha256=YSf-Gi84I-D8SWRe4tA5oS9AuH2nKLu6W88pVBUjO3Q,11358
|
|
33
|
+
python_code_quality-0.1.10.dist-info/RECORD,,
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Chris Kilner <chris@rhiza.fr>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|