File tree Expand file tree Collapse file tree 2 files changed +71
-57
lines changed
Expand file tree Collapse file tree 2 files changed +71
-57
lines changed Original file line number Diff line number Diff line change 1- # Linear Genetic Programming Framework
1+ default : check
2+
3+ # Initialize project
4+ init :
5+ rustup component add clippy rustfmt
6+ sr init --merge 2 >/ dev/ null || sr init
27
38# Install binary to PATH
49install :
510 cargo install --path crates/ lgp-cli
611
712# Build debug binary
813build :
9- cargo build
14+ cargo build --workspace
15+
16+ # Run with arguments
17+ run * ARGS :
18+ cargo run -p lgp-cli -- {{ ARGS}}
1019
1120# Run all tests
1221test :
13- cargo test
22+ cargo test --workspace
23+
24+ # Run clippy linter
25+ lint :
26+ cargo clippy --workspace -- -D warnings
1427
1528# Format code
1629fmt :
17- cargo fmt
30+ cargo fmt --all
31+
32+ # Check formatting without modifying
33+ check-fmt :
34+ cargo fmt --all -- --check
35+
36+ # Record showcase with teasr
37+ record :
38+ teasr showme
39+
40+ # Quality gate: format + lint + test
41+ check : check-fmt lint test
42+
43+ # Full CI gate: format + lint + build + test
44+ ci : check-fmt lint build test
Original file line number Diff line number Diff line change 1- # sr configuration — merged with new defaults
2- # Run 'sr init --force' for a fully-commented template.
1+ branches : [main]
2+ tag_prefix : " v"
3+ floating_tags : true
34
4- branches :
5- - main
6- tag_prefix : v
75types :
8- - name : feat
9- bump : minor
10- section : Features
11- - name : fix
12- bump : patch
13- section : Bug Fixes
14- - name : perf
15- bump : patch
16- section : Performance
17- - name : docs
18- section : Documentation
19- - name : refactor
20- section : Refactoring
21- - name : revert
22- section : Reverts
23- - name : chore
24- - name : ci
25- - name : test
26- - name : build
27- - name : style
6+ - name : feat
7+ bump : minor
8+ section : Features
9+ - name : fix
10+ bump : patch
11+ section : Bug Fixes
12+ - name : perf
13+ bump : patch
14+ section : Performance
15+ - name : docs
16+ section : Documentation
17+ - name : refactor
18+ bump : patch
19+ section : Refactoring
20+ - name : revert
21+ section : Reverts
22+ - name : chore
23+ - name : ci
24+ - name : test
25+ - name : build
26+ - name : style
27+
2828version_files :
29- - Cargo.toml
29+ - Cargo.toml
30+
3031changelog :
3132 file : CHANGELOG.md
32- template : null
33+
3334hooks :
3435 commit-msg :
35- - sr hook commit-msg
36+ - sr hook commit-msg
3637 pre-commit :
37- - step : format
38- patterns :
39- - ' *.rs'
40- rules :
41- - rustfmt --check --edition 2021 {files}
42- - step : lint
43- patterns :
44- - ' *.rs'
45- rules :
46- - cargo clippy --workspace -- -D warnings
38+ - step : format
39+ patterns :
40+ - " *.rs"
41+ rules :
42+ - " rustfmt --check --edition 2021 {files}"
43+ - step : lint
44+ patterns :
45+ - " *.rs"
46+ rules :
47+ - " cargo clippy --workspace -- -D warnings"
4748 pre-push :
48- - cargo test --workspace
49- commit_pattern : ^(?P<type>\w+)(?:\((?P<scope>[^)]+)\))?(?P<breaking>!)?:\s+(?P<description>.+)
50- breaking_section : Breaking Changes
51- misc_section : Miscellaneous
52- version_files_strict : false
53- artifacts : []
54- floating_tags : false
55- build_command : null
56- stage_files : []
57- prerelease : null
58- pre_release_command : null
59- post_release_command : null
60- sign_tags : false
61- draft : false
62- release_name_template : null
49+ - cargo test --workspace
You can’t perform that action at this time.
0 commit comments