Skip to content

Commit fb93dbf

Browse files
chore: pyqual auto-fix iteration
1 parent 0663b26 commit fb93dbf

File tree

8 files changed

+54
-54
lines changed

8 files changed

+54
-54
lines changed

project/analysis.toon.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ 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 collect CC=19 (limit:15)
11-
🟡 CC detect_smells CC=17 (limit:15)
1210
🟡 CC filter CC=15 (limit:15)
11+
🟡 CC detect_smells CC=17 (limit:15)
12+
🟡 CC collect CC=19 (limit:15)
1313

1414
REFACTOR[3]:
1515
1. split regix/benchmark.py (god module)

project/calls.mmd

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
flowchart LR
22
subgraph regix__Regix
3-
regix__Regix__history["history"]
4-
regix__Regix____init__["__init__"]
53
regix__Regix__snapshot["snapshot"]
4+
regix__Regix____init__["__init__"]
5+
regix__Regix__history["history"]
66
end
77
subgraph regix__backends
8-
regix__backends__structure_backend__StructureBackend__collect["collect"]
98
regix__backends__get_backend["get_backend"]
109
regix__backends__structure_backend___analyse_function["_analyse_function"]
10+
regix__backends__structure_backend__StructureBackend__collect["collect"]
1111
end
1212
subgraph regix__benchmark
13-
regix__benchmark__BenchmarkReporter__print_json["print_json"]
14-
regix__benchmark__BackendProbe__run["run"]
15-
regix__benchmark___make_gates_probe["_make_gates_probe"]
16-
regix__benchmark__BenchmarkReporter__print["print"]
1713
regix__benchmark___make_compare_probe["_make_compare_probe"]
1814
regix__benchmark___make_config_parse_probe["_make_config_parse_probe"]
19-
regix__benchmark__main["main"]
20-
regix__benchmark__build_regix_suite["build_regix_suite"]
2115
regix__benchmark__BenchmarkReporter__print_plain["print_plain"]
16+
regix__benchmark__BenchmarkReporter__print["print"]
2217
regix__benchmark___make_snapshot_probe["_make_snapshot_probe"]
18+
regix__benchmark__main["main"]
19+
regix__benchmark__BenchmarkReporter__print_json["print_json"]
20+
regix__benchmark__BackendProbe__run["run"]
21+
regix__benchmark__build_regix_suite["build_regix_suite"]
22+
regix__benchmark___make_gates_probe["_make_gates_probe"]
2323
end
2424
subgraph regix__cache
25+
regix__cache___cache_key["_cache_key"]
2526
regix__cache__store["store"]
27+
regix__cache__clear["clear"]
2628
regix__cache__lookup["lookup"]
27-
regix__cache___cache_key["_cache_key"]
2829
regix__cache___cache_dir["_cache_dir"]
29-
regix__cache__clear["clear"]
3030
end
3131
subgraph regix__cli
32-
regix__cli___load_config["_load_config"]
32+
regix__cli__status["status"]
3333
regix__cli__diff["diff"]
34-
regix__cli__snapshot["snapshot"]
3534
regix__cli__gates["gates"]
36-
regix__cli__status["status"]
3735
regix__cli__history["history"]
36+
regix__cli__snapshot["snapshot"]
37+
regix__cli___load_config["_load_config"]
3838
end
3939
subgraph regix__compare
4040
regix__compare___compute_delta["_compute_delta"]
41-
regix__compare___compare_symbol_metrics["_compare_symbol_metrics"]
4241
regix__compare__compare["compare"]
42+
regix__compare___compare_symbol_metrics["_compare_symbol_metrics"]
4343
end
4444
subgraph regix__config
4545
regix__config__RegressionConfig__from_file["from_file"]
@@ -49,44 +49,44 @@ flowchart LR
4949
regix__gates___passes["_passes"]
5050
end
5151
subgraph regix__git
52-
regix__git__resolve_ref["resolve_ref"]
53-
regix__git___run_git["_run_git"]
5452
regix__git__is_clean["is_clean"]
5553
regix__git__read_local_sources["read_local_sources"]
56-
regix__git__get_changed_files["get_changed_files"]
5754
regix__git__list_commits["list_commits"]
58-
regix__git__checkout_temporary["checkout_temporary"]
5955
regix__git__read_tree_sources["read_tree_sources"]
56+
regix__git__checkout_temporary["checkout_temporary"]
6057
regix__git__get_dirty_files["get_dirty_files"]
58+
regix__git__resolve_ref["resolve_ref"]
59+
regix__git___run_git["_run_git"]
60+
regix__git__get_changed_files["get_changed_files"]
6161
end
6262
subgraph regix__history
63+
regix__history___compute_trends["_compute_trends"]
6364
regix__history___aggregate_snapshot_metrics["_aggregate_snapshot_metrics"]
6465
regix__history__build_history["build_history"]
65-
regix__history___compute_trends["_compute_trends"]
6666
regix__history___linear_slope["_linear_slope"]
6767
end
6868
subgraph regix__report
6969
regix__report__render["render"]
7070
regix__report___render_rich["_render_rich"]
7171
end
7272
subgraph regix__smells
73-
regix__smells__detect_smells["detect_smells"]
74-
regix__smells___check_symbol_smells["_check_symbol_smells"]
73+
regix__smells___check_stub_regression["_check_stub_regression"]
74+
regix__smells___avg_func_length["_avg_func_length"]
7575
regix__smells___func_length["_func_length"]
76+
regix__smells___largest_function["_largest_function"]
7677
regix__smells___check_no_delegation["_check_no_delegation"]
7778
regix__smells___count_hollow_signals["_count_hollow_signals"]
78-
regix__smells___avg_func_length["_avg_func_length"]
79-
regix__smells___was_already_hollow["_was_already_hollow"]
80-
regix__smells___check_hallucination_proxy["_check_hallucination_proxy"]
81-
regix__smells___check_stub_regression["_check_stub_regression"]
8279
regix__smells___check_god_function["_check_god_function"]
80+
regix__smells__detect_smells["detect_smells"]
8381
regix__smells___function_count_drop["_function_count_drop"]
84-
regix__smells___largest_function["_largest_function"]
82+
regix__smells___check_symbol_smells["_check_symbol_smells"]
83+
regix__smells___was_already_hollow["_was_already_hollow"]
84+
regix__smells___check_hallucination_proxy["_check_hallucination_proxy"]
8585
end
8686
subgraph regix__snapshot
87+
regix__snapshot___merge_symbols["_merge_symbols"]
8788
regix__snapshot__capture["capture"]
8889
regix__snapshot___filter_sources["_filter_sources"]
89-
regix__snapshot___merge_symbols["_merge_symbols"]
9090
regix__snapshot___collect_files["_collect_files"]
9191
end
9292
subgraph scripts__check_regression

project/calls.png

-1.33 KB
Loading

project/context.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@
9090
- **Functions**: 3
9191
- **File**: `report.py`
9292

93-
### regix.backends.architecture_backend
93+
### regix.backends.docstring_backend
9494
- **Functions**: 3
9595
- **Classes**: 1
96-
- **File**: `architecture_backend.py`
96+
- **File**: `docstring_backend.py`
9797

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

103103
### regix.backends.radon_backend
104104
- **Functions**: 3
@@ -322,18 +322,23 @@ 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.backends.architecture_backend.ArchitectureBackend
326-
> Computes per-function structural metrics via AST for smell detection.
325+
### regix.models.GateResult
326+
> Aggregate gate evaluation result.
327327
- **Methods**: 3
328-
- **Key Methods**: regix.backends.architecture_backend.ArchitectureBackend.is_available, regix.backends.architecture_backend.ArchitectureBackend.version, regix.backends.architecture_backend.ArchitectureBackend.collect
329-
- **Inherits**: BackendBase
328+
- **Key Methods**: regix.models.GateResult.all_passed, regix.models.GateResult.errors, regix.models.GateResult.warnings
330329

331330
### regix.backends.docstring_backend.DocstringBackend
332331
> Measure docstring coverage using the ``ast`` module.
333332
- **Methods**: 3
334333
- **Key Methods**: regix.backends.docstring_backend.DocstringBackend.is_available, regix.backends.docstring_backend.DocstringBackend.version, regix.backends.docstring_backend.DocstringBackend.collect
335334
- **Inherits**: BackendBase
336335

336+
### regix.backends.architecture_backend.ArchitectureBackend
337+
> Computes per-function structural metrics via AST for smell detection.
338+
- **Methods**: 3
339+
- **Key Methods**: regix.backends.architecture_backend.ArchitectureBackend.is_available, regix.backends.architecture_backend.ArchitectureBackend.version, regix.backends.architecture_backend.ArchitectureBackend.collect
340+
- **Inherits**: BackendBase
341+
337342
### regix.backends.radon_backend.RadonBackend
338343
> Maintainability index and cyclomatic complexity via ``radon``.
339344
- **Methods**: 3
@@ -352,11 +357,6 @@ snapshot [regix.cli]
352357
- **Key Methods**: regix.backends.vallm_backend.VallmBackend.is_available, regix.backends.vallm_backend.VallmBackend.version, regix.backends.vallm_backend.VallmBackend.collect
353358
- **Inherits**: BackendBase
354359

355-
### regix.models.GateResult
356-
> Aggregate gate evaluation result.
357-
- **Methods**: 3
358-
- **Key Methods**: regix.models.GateResult.all_passed, regix.models.GateResult.errors, regix.models.GateResult.warnings
359-
360360
### regix.backends.lizard_backend.LizardBackend
361361
> Cyclomatic complexity and function length via the ``lizard`` library.
362362
- **Methods**: 3

project/flow.mmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ flowchart TD
2424
regix__git__get_changed_files["get_changed_files"]
2525
regix__git__checkout_temporary["checkout_temporary"]
2626
regix__git__read_tree_sources["read_tree_sources"]
27-
regix__config__GateThresholds__get["get"]
28-
regix__config__RegressionConfig__cc_max["cc_max"]
29-
regix__config__RegressionConfig__mi_min["mi_min"]
30-
regix__config__RegressionConfig__coverage_min["coverage_min"]
31-
regix__config__RegressionConfig__length_max["length_max"]
32-
regix__config__RegressionConfig__docstring_min["docstring_min"]
27+
regix__Regix__snapshot["snapshot"]
28+
regix__Regix__compare["compare"]
29+
regix__Regix__compare_local["compare_local"]
30+
regix__Regix__history["history"]
31+
regix__snapshot__capture{{capture CC=17}}
32+
regix__cache__lookup["lookup"]
3333
...["+91 more"]
3434
end
3535

36-
class regix__compare__compare,regix__git__is_clean,regix__git__get_dirty_files,regix__git__get_changed_files,regix__git__checkout_temporary,regix__config__GateThresholds__get,regix__config__RegressionConfig__cc_max,regix__config__RegressionConfig__mi_min,regix__config__RegressionConfig__coverage_min,regix__config__RegressionConfig__length_max entry
36+
class regix__compare__compare,regix__git__is_clean,regix__git__get_dirty_files,regix__git__get_changed_files,regix__git__checkout_temporary,regix__cli___load_config,regix__cli__compare,regix__cli__history,regix__cli__snapshot,regix__cli__diff entry

project/flow.png

136 Bytes
Loading

project/index.html

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

project/map.toon.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ D:
130130
_CallVisitor(ast.NodeVisitor): __init__(0),visit_Call(1) # Collect call_count and fan_out from a function body...
131131
StructureBackend(BackendBase): is_available(0),version(0),collect(4),_collect_functions(3) # AST-based structural metrics: fan_out, call_count, symbol_co...
132132
_analyse_function(node)
133+
regix/backends/lizard_backend.py:
134+
e: LizardBackend
135+
LizardBackend(BackendBase): is_available(0),version(0),collect(4) # Cyclomatic complexity and function length via the ``lizard``...
133136
regix/integrations/__init__.py:
134137
e: RegixCollector
135138
RegixCollector: collect(1),_parse(1) # GateSet-compatible metric collector for pyqual.
136139

137140
Reads ``.re...
138-
regix/backends/lizard_backend.py:
139-
e: LizardBackend
140-
LizardBackend(BackendBase): is_available(0),version(0),collect(4) # Cyclomatic complexity and function length via the ``lizard``...
141141
regix/history.py:
142142
e: _aggregate_snapshot_metrics,_compute_trends,build_history,_linear_slope
143143
_aggregate_snapshot_metrics(symbols)

0 commit comments

Comments
 (0)