-
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathsourcery.yaml
More file actions
42 lines (36 loc) · 809 Bytes
/
Copy pathsourcery.yaml
File metadata and controls
42 lines (36 loc) · 809 Bytes
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
# Sourcery configuration for AloneMusic
# Docs: https://docs.sourcery.ai/Configuration/Project-Settings/
version: 1
# Files/folders to ignore
ignore:
- venv/*
- .venv/*
- __pycache__/*
- migrations/*
- tests/*
- *.md
- *.yml
- *.yaml
# Refactor rules
refactor:
enable:
- inline-immediately-returned-variable
- remove-redundant-if
- simplify-boolean-comparison
- merge-nested-ifs
- merge-dict-assign
- for-else-to-any-all
skip:
- de-morgan # optional: keep "not (a and b)" instead of "not a or not b"
# Code quality metrics
metrics:
quality_threshold: 30.0
# Duplicate code detection
clone_detection:
min_lines: 5
min_duplicates: 2
# GitHub integration (optional)
github:
labels:
- "sourcery"
sourcery_branch: "sourcery/{base_branch}"