-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyqual.yaml
More file actions
121 lines (101 loc) · 2.82 KB
/
Copy pathpyqual.yaml
File metadata and controls
121 lines (101 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
pipeline:
name: quality-loop-with-llx
# Quality gates — pipeline iterates until ALL pass
metrics:
cc_max: 15 # cyclomatic complexity per function
critical_max: 30 # functions above complexity threshold
vallm_pass_min: 50 # vallm validation pass rate (%)
coverage_min: 20 # line coverage (%) — minimum threshold
coverage_branch_min: 15 # branch coverage (%) — minimum threshold
completion_rate_min: 75 # percentage of passed gates required for closure — realistic threshold
# Security gates (enabled):
vuln_high_max: 0 # pip-audit high severity CVEs
vuln_critical_max: 0 # pip-audit critical severity CVEs
ruff_errors_max: 150 # ruff lint errors (realistic threshold)
secrets_found_max: 0 # detect-secrets findings
mypy_errors_max: 100 # mypy type errors (realistic for gradual typing)
# Pipeline stages using new built-in tools
stages:
- name: setup
tool: setup-deps
when: first_iteration
timeout: 300
- name: setup_tasks
run: |
planfile sync github
planfile sync markdown
when: first_iteration
optional: true
- name: pip-audit
tool: pip-audit
when: always
optional: true
- name: ruff-lint
tool: ruff
when: always
optional: true
- name: detect-secrets
tool: detect-secrets
when: always
optional: true
- name: mypy-types
tool: mypy
when: always
optional: true
- name: prefact
tool: prefact
optional: true
when: metrics_fail
timeout: 900
# Custom fix - uses explicit LLM_MODEL
- name: fix
run: |
export PATH="$HOME/.local/bin:$PATH"
python3 pyqual/custom_fix.py 2>&1 | tee .pyqual/fix_output.log || echo "Fix stage skipped"
when: metrics_fail
optional: true
timeout: 1800
- name: verify
tool: vallm-verify
optional: true
when: after_fix
- name: report
tool: report
when: always
optional: true
- name: todo_fix
tool: todo-fix
when: metrics_pass
optional: true
timeout: 1800
- name: close_tasks
tool: close-tasks
when: always
optional: true
- name: push
tool: git-push
when: always
optional: true
- name: release-check
tool: release-check
when: metrics_pass
timeout: 60
- name: publish
tool: make-publish
when: metrics_pass
optional: true
- name: automerge
tool: attack-merge
when: always
optional: true
- name: markdown_report
tool: markdown-report
when: always
optional: true
loop:
max_iterations: 3
on_fail: report
env:
LLM_MODEL: openrouter/openai/gpt-5-mini
LLX_DEFAULT_TIER: balanced
LLX_VERBOSE: true