Skip to content

Commit 56a90e4

Browse files
chore: pyqual auto-fix iteration
1 parent 0b42019 commit 56a90e4

File tree

6 files changed

+65
-59
lines changed

6 files changed

+65
-59
lines changed

project/analysis.toon.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ HEALTH[8]:
77
🟡 CC compare CC=16 (limit:15)
88
🟡 CC diff CC=15 (limit:15)
99
🟡 CC capture CC=17 (limit:15)
10-
🟡 CC filter CC=15 (limit:15)
1110
🟡 CC collect CC=19 (limit:15)
11+
🟡 CC filter CC=15 (limit:15)
1212
🟡 CC detect_smells CC=17 (limit:15)
1313

1414
REFACTOR[3]:
@@ -17,15 +17,15 @@ REFACTOR[3]:
1717
3. break 1 circular dependencies
1818

1919
PIPELINES[91]:
20-
[1] Src [run_command]: run_command
20+
[1] Src [__init__]: __init__
2121
PURITY: 100% pure
22-
[2] Src [check_regression]: check_regression → load_json_file
22+
[2] Src [__init__]: __init__
2323
PURITY: 100% pure
2424
[3] Src [__init__]: __init__
2525
PURITY: 100% pure
2626
[4] Src [__init__]: __init__
2727
PURITY: 100% pure
28-
[5] Src [__init__]: __init__
28+
[5] Src [run_command]: run_command
2929
PURITY: 100% pure
3030

3131
LAYERS:

project/calls.mmd

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
flowchart LR
22
subgraph regix__Regix
3-
regix__Regix__history["history"]
43
regix__Regix____init__["__init__"]
54
regix__Regix__snapshot["snapshot"]
5+
regix__Regix__history["history"]
66
end
77
subgraph regix__backends
88
regix__backends__structure_backend__StructureBackend__collect["collect"]
99
regix__backends__get_backend["get_backend"]
1010
regix__backends__structure_backend___analyse_function["_analyse_function"]
1111
end
1212
subgraph regix__benchmark
13-
regix__benchmark__BackendProbe__run["run"]
13+
regix__benchmark___make_gates_probe["_make_gates_probe"]
1414
regix__benchmark__BenchmarkReporter__print_plain["print_plain"]
15-
regix__benchmark___make_snapshot_probe["_make_snapshot_probe"]
1615
regix__benchmark___make_config_parse_probe["_make_config_parse_probe"]
17-
regix__benchmark__BenchmarkReporter__print["print"]
18-
regix__benchmark___make_compare_probe["_make_compare_probe"]
19-
regix__benchmark___make_gates_probe["_make_gates_probe"]
16+
regix__benchmark__BenchmarkReporter__print_json["print_json"]
2017
regix__benchmark__build_regix_suite["build_regix_suite"]
2118
regix__benchmark__main["main"]
22-
regix__benchmark__BenchmarkReporter__print_json["print_json"]
19+
regix__benchmark___make_compare_probe["_make_compare_probe"]
20+
regix__benchmark__BenchmarkReporter__print["print"]
21+
regix__benchmark__BackendProbe__run["run"]
22+
regix__benchmark___make_snapshot_probe["_make_snapshot_probe"]
2323
end
2424
subgraph regix__cache
2525
regix__cache__store["store"]
26-
regix__cache__lookup["lookup"]
2726
regix__cache__clear["clear"]
2827
regix__cache___cache_key["_cache_key"]
28+
regix__cache__lookup["lookup"]
2929
regix__cache___cache_dir["_cache_dir"]
3030
end
3131
subgraph regix__cli
32-
regix__cli__diff["diff"]
33-
regix__cli__gates["gates"]
32+
regix__cli__status["status"]
33+
regix__cli___load_config["_load_config"]
3434
regix__cli__history["history"]
35+
regix__cli__gates["gates"]
36+
regix__cli__diff["diff"]
3537
regix__cli__snapshot["snapshot"]
36-
regix__cli___load_config["_load_config"]
37-
regix__cli__status["status"]
3838
end
3939
subgraph regix__compare
4040
regix__compare___compute_delta["_compute_delta"]
@@ -45,53 +45,53 @@ flowchart LR
4545
regix__config__RegressionConfig__from_file["from_file"]
4646
end
4747
subgraph regix__gates
48-
regix__gates___passes["_passes"]
4948
regix__gates__check_gates["check_gates"]
49+
regix__gates___passes["_passes"]
5050
end
5151
subgraph regix__git
52-
regix__git__read_local_sources["read_local_sources"]
53-
regix__git__resolve_ref["resolve_ref"]
5452
regix__git__is_clean["is_clean"]
5553
regix__git__list_commits["list_commits"]
5654
regix__git__read_tree_sources["read_tree_sources"]
57-
regix__git___run_git["_run_git"]
58-
regix__git__get_dirty_files["get_dirty_files"]
5955
regix__git__checkout_temporary["checkout_temporary"]
56+
regix__git__read_local_sources["read_local_sources"]
57+
regix__git__resolve_ref["resolve_ref"]
58+
regix__git__get_dirty_files["get_dirty_files"]
59+
regix__git___run_git["_run_git"]
6060
regix__git__get_changed_files["get_changed_files"]
6161
end
6262
subgraph regix__history
63+
regix__history__build_history["build_history"]
6364
regix__history___compute_trends["_compute_trends"]
64-
regix__history___linear_slope["_linear_slope"]
6565
regix__history___aggregate_snapshot_metrics["_aggregate_snapshot_metrics"]
66-
regix__history__build_history["build_history"]
66+
regix__history___linear_slope["_linear_slope"]
6767
end
6868
subgraph regix__report
69-
regix__report__render["render"]
7069
regix__report___render_rich["_render_rich"]
70+
regix__report__render["render"]
7171
end
7272
subgraph regix__smells
73-
regix__smells___avg_func_length["_avg_func_length"]
74-
regix__smells___check_stub_regression["_check_stub_regression"]
7573
regix__smells__detect_smells["detect_smells"]
76-
regix__smells___function_count_drop["_function_count_drop"]
7774
regix__smells___was_already_hollow["_was_already_hollow"]
78-
regix__smells___check_hallucination_proxy["_check_hallucination_proxy"]
7975
regix__smells___check_god_function["_check_god_function"]
80-
regix__smells___count_hollow_signals["_count_hollow_signals"]
81-
regix__smells___func_length["_func_length"]
82-
regix__smells___check_no_delegation["_check_no_delegation"]
8376
regix__smells___largest_function["_largest_function"]
77+
regix__smells___check_no_delegation["_check_no_delegation"]
78+
regix__smells___count_hollow_signals["_count_hollow_signals"]
79+
regix__smells___check_hallucination_proxy["_check_hallucination_proxy"]
80+
regix__smells___check_stub_regression["_check_stub_regression"]
81+
regix__smells___avg_func_length["_avg_func_length"]
8482
regix__smells___check_symbol_smells["_check_symbol_smells"]
83+
regix__smells___function_count_drop["_function_count_drop"]
84+
regix__smells___func_length["_func_length"]
8585
end
8686
subgraph regix__snapshot
87-
regix__snapshot___collect_files["_collect_files"]
8887
regix__snapshot__capture["capture"]
89-
regix__snapshot___filter_sources["_filter_sources"]
9088
regix__snapshot___merge_symbols["_merge_symbols"]
89+
regix__snapshot___collect_files["_collect_files"]
90+
regix__snapshot___filter_sources["_filter_sources"]
9191
end
9292
subgraph scripts__check_regression
93-
scripts__check_regression__check_regression["check_regression"]
9493
scripts__check_regression__load_json_file["load_json_file"]
94+
scripts__check_regression__check_regression["check_regression"]
9595
end
9696
scripts__check_regression__check_regression --> scripts__check_regression__load_json_file
9797
scripts__check_regression__check_regression --> regix__benchmark__BenchmarkReporter__print

project/calls.png

-7.96 KB
Loading

project/context.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@
9595
- **Classes**: 1
9696
- **File**: `architecture_backend.py`
9797

98-
### regix.backends.radon_backend
98+
### regix.backends.docstring_backend
9999
- **Functions**: 3
100100
- **Classes**: 1
101-
- **File**: `radon_backend.py`
101+
- **File**: `docstring_backend.py`
102102

103-
### regix.backends.vallm_backend
103+
### regix.backends.radon_backend
104104
- **Functions**: 3
105105
- **Classes**: 1
106-
- **File**: `vallm_backend.py`
106+
- **File**: `radon_backend.py`
107107

108108
## Key Entry Points
109109

@@ -172,14 +172,14 @@ Main execution flows into the system:
172172
> Return cached snapshot or None.
173173
- **Calls**: regix.cache._cache_dir, regix.cache._cache_key, path.exists, None.decode, json.loads, Snapshot, SymbolMetrics, gzip.decompress
174174

175-
### regix.backends.radon_backend.RadonBackend.collect
176-
> Collect MI (module-level) and CC (per-function) using radon.
177-
- **Calls**: str, results.append, mi_visit, cc_visit, SymbolMetrics, results.append, full.read_text, SymbolMetrics
178-
179175
### regix.backends.docstring_backend.DocstringBackend.collect
180176
> Compute docstring coverage per file.
181177
- **Calls**: str, ast.walk, results.append, ast.parse, isinstance, SymbolMetrics, full.read_text, ast.get_docstring
182178

179+
### regix.backends.radon_backend.RadonBackend.collect
180+
> Collect MI (module-level) and CC (per-function) using radon.
181+
- **Calls**: str, results.append, mi_visit, cc_visit, SymbolMetrics, results.append, full.read_text, SymbolMetrics
182+
183183
### regix.benchmark.ImportProbe.run
184184
- **Calls**: range, min, BenchmarkResult, time.perf_counter, BenchmarkResult, subprocess.run, times.append, time.perf_counter
185185

@@ -322,33 +322,27 @@ snapshot [regix.cli]
322322
- **Key Methods**: regix.backends.structure_backend.StructureBackend.is_available, regix.backends.structure_backend.StructureBackend.version, regix.backends.structure_backend.StructureBackend.collect, regix.backends.structure_backend.StructureBackend._collect_functions
323323
- **Inherits**: BackendBase
324324

325-
### regix.models.GateResult
326-
> Aggregate gate evaluation result.
327-
- **Methods**: 3
328-
- **Key Methods**: regix.models.GateResult.all_passed, regix.models.GateResult.errors, regix.models.GateResult.warnings
329-
330325
### regix.backends.architecture_backend.ArchitectureBackend
331326
> Computes per-function structural metrics via AST for smell detection.
332327
- **Methods**: 3
333328
- **Key Methods**: regix.backends.architecture_backend.ArchitectureBackend.is_available, regix.backends.architecture_backend.ArchitectureBackend.version, regix.backends.architecture_backend.ArchitectureBackend.collect
334329
- **Inherits**: BackendBase
335330

336-
### regix.backends.radon_backend.RadonBackend
337-
> Maintainability index and cyclomatic complexity via ``radon``.
331+
### regix.backends.docstring_backend.DocstringBackend
332+
> Measure docstring coverage using the ``ast`` module.
338333
- **Methods**: 3
339-
- **Key Methods**: regix.backends.radon_backend.RadonBackend.is_available, regix.backends.radon_backend.RadonBackend.version, regix.backends.radon_backend.RadonBackend.collect
334+
- **Key Methods**: regix.backends.docstring_backend.DocstringBackend.is_available, regix.backends.docstring_backend.DocstringBackend.version, regix.backends.docstring_backend.DocstringBackend.collect
340335
- **Inherits**: BackendBase
341336

342-
### regix.backends.vallm_backend.VallmBackend
343-
> LLM-based code quality scoring via the ``vallm`` CLI tool.
337+
### regix.models.GateResult
338+
> Aggregate gate evaluation result.
344339
- **Methods**: 3
345-
- **Key Methods**: regix.backends.vallm_backend.VallmBackend.is_available, regix.backends.vallm_backend.VallmBackend.version, regix.backends.vallm_backend.VallmBackend.collect
346-
- **Inherits**: BackendBase
340+
- **Key Methods**: regix.models.GateResult.all_passed, regix.models.GateResult.errors, regix.models.GateResult.warnings
347341

348-
### regix.backends.docstring_backend.DocstringBackend
349-
> Measure docstring coverage using the ``ast`` module.
342+
### regix.backends.radon_backend.RadonBackend
343+
> Maintainability index and cyclomatic complexity via ``radon``.
350344
- **Methods**: 3
351-
- **Key Methods**: regix.backends.docstring_backend.DocstringBackend.is_available, regix.backends.docstring_backend.DocstringBackend.version, regix.backends.docstring_backend.DocstringBackend.collect
345+
- **Key Methods**: regix.backends.radon_backend.RadonBackend.is_available, regix.backends.radon_backend.RadonBackend.version, regix.backends.radon_backend.RadonBackend.collect
352346
- **Inherits**: BackendBase
353347

354348
### regix.backends.BackendBase
@@ -357,6 +351,12 @@ snapshot [regix.cli]
357351
- **Key Methods**: regix.backends.BackendBase.is_available, regix.backends.BackendBase.collect, regix.backends.BackendBase.version
358352
- **Inherits**: ABC
359353

354+
### regix.backends.vallm_backend.VallmBackend
355+
> LLM-based code quality scoring via the ``vallm`` CLI tool.
356+
- **Methods**: 3
357+
- **Key Methods**: regix.backends.vallm_backend.VallmBackend.is_available, regix.backends.vallm_backend.VallmBackend.version, regix.backends.vallm_backend.VallmBackend.collect
358+
- **Inherits**: BackendBase
359+
360360
### regix.backends.lizard_backend.LizardBackend
361361
> Cyclomatic complexity and function length via the ``lizard`` library.
362362
- **Methods**: 3
@@ -479,8 +479,8 @@ Functions exposed as public API (no underscore prefix):
479479
- `regix.benchmark.BenchmarkReporter.print_plain` - 14 calls
480480
- `regix.cache.lookup` - 13 calls
481481
- `regix.git.read_tree_sources` - 12 calls
482-
- `regix.backends.radon_backend.RadonBackend.collect` - 12 calls
483482
- `regix.backends.docstring_backend.DocstringBackend.collect` - 12 calls
483+
- `regix.backends.radon_backend.RadonBackend.collect` - 12 calls
484484
- `regix.benchmark.ImportProbe.run` - 12 calls
485485
- `regix.benchmark.CLIProbe.run` - 12 calls
486486
- `regix.benchmark.ThroughputProbe.run` - 12 calls

project/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

pyqual.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ pipeline:
108108
optional: true
109109
timeout: 60
110110

111+
- name: build
112+
run: python3 -m build
113+
when: after bump_version
114+
optional: true
115+
timeout: 120
116+
111117
- name: publish
112118
run: |
113119
# Publish to PyPI (packages built in previous steps)

0 commit comments

Comments
 (0)