-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.refactoring-agent.yml
More file actions
75 lines (65 loc) · 1.33 KB
/
Copy path.refactoring-agent.yml
File metadata and controls
75 lines (65 loc) · 1.33 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
# Refactoring Agent Configuration
# https://pypi.org/project/refactoring-agent/
# 扫描路径配置
scan_paths:
- src/
- tests/
# 忽略路径
ignore_paths:
- .venv/
- venv/
- __pycache__/
- .git/
- .mypy_cache/
- .pytest_cache/
- build/
- dist/
- "*.egg-info/"
# 重构规则配置
refactor_rules:
# 代码质量规则
quality:
enabled: true
remove_unused_imports: true
remove_unused_variables: true
simplify_expressions: true
# 代码风格规则
style:
enabled: true
consistent_naming: true
remove_redundant_pass: true
# 性能优化规则
performance:
enabled: true
optimize_loops: true
use_list_comprehension: true
# AI 辅助配置
ai_assistance:
enabled: true
# 使用已配置的 LLM 提供商
provider: auto
# 自动提交建议
auto_commit: false
# 生成重构说明
generate_explanation: true
# 输出配置
output:
# 生成报告格式
report_format: markdown
# 报告输出路径
report_path: ./refactoring_reports/
# 详细日志
verbose: true
# Git 集成
git:
# 自动创建分支
auto_branch: true
# 分支命名模式
branch_pattern: refactor/{timestamp}
# 自动提交
auto_commit: false
# 提交信息模板
commit_message_template: |
refactor: {summary}
{description}
Generated by refactoring-agent