Skip to content

Commit 1eaca41

Browse files
committed
Merge branch 'ci-router-validate'
2 parents 34687ce + ca56a8b commit 1eaca41

File tree

11 files changed

+120
-363
lines changed

11 files changed

+120
-363
lines changed

.github/workflows/benchmarks.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
with:
2323
run_rust: true
2424
run_python: false
25-
rust_no_default_features: true # Baseline without Vosk
25+
rust_no_default_features: true # Baseline without Vosk
2626
rust_msrv: "1.70.0" # Minimum supported version
2727
use_nextest: true # Faster test execution
2828
use_sccache: true # Build caching
2929
run_cargo_deny: true # License/security checks
3030
test_timeout_minutes: 30
31-
max_parallel: 4 # Limit parallel crate builds
31+
max_parallel: 4
3232
# Crate-specific system dependencies
3333
crate_system_deps: |
3434
{"coldvox-audio":"libasound2-dev","coldvox-text-injection":"libxdo-dev libxtst-dev","coldvox-gui":"libgl1-mesa-dev libxcursor-dev"}
@@ -67,5 +67,5 @@ jobs:
6767
- name: Check key features
6868
run: |
6969
cargo check --locked -p coldvox-text-injection
70-
cargo check --locked -p app --features text-injection
71-
cargo check --locked -p app --features examples
70+
cargo check --locked -p coldvox-app --features text-injection
71+
cargo check --locked -p coldvox-app --features examples

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Pre-commit hooks for ColdVox
2+
# See https://pre-commit.com for more information
3+
repos:
4+
# YAML linting
5+
- repo: https://github.com/adrienverge/yamllint
6+
rev: v1.35.1
7+
hooks:
8+
- id: yamllint
9+
args: [--config-file, .yamllint.yaml]
10+
files: \.(yml|yaml)$
11+
12+
# Check YAML syntax
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v5.0.0
15+
hooks:
16+
- id: check-yaml
17+
args: [--unsafe] # Allow custom tags in GitHub Actions
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace
20+
- id: check-merge-conflict
21+
- id: mixed-line-ending
22+
args: [--fix=lf]
23+
24+
# GitHub Actions workflow linting
25+
- repo: https://github.com/rhysd/actionlint
26+
rev: v1.7.4
27+
hooks:
28+
- id: actionlint
29+
30+
# Rust formatting (optional - commented out by default)
31+
# Uncomment if you want pre-commit to also check Rust formatting
32+
# - repo: local
33+
# hooks:
34+
# - id: rustfmt
35+
# name: rustfmt
36+
# entry: cargo fmt -- --check
37+
# language: system
38+
# types: [rust]
39+
# pass_filenames: false

.yamllint.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# YAML linting configuration for ColdVox
2+
extends: default
3+
4+
rules:
5+
# Allow longer lines for GitHub Actions workflows
6+
line-length:
7+
max: 120
8+
level: warning
9+
allow-non-breakable-words: true
10+
allow-non-breakable-inline-mappings: true
11+
12+
# GitHub Actions uses on: syntax
13+
truthy:
14+
allowed-values: ['true', 'false', 'on']
15+
check-keys: false
16+
17+
# Allow comments without space for directives
18+
comments:
19+
min-spaces-from-content: 1
20+
21+
# Indentation settings
22+
indentation:
23+
spaces: 2
24+
indent-sequences: true
25+
26+
# Document start not required
27+
document-start: disable
28+
29+
# Allow multiple spaces in brackets for alignment
30+
brackets:
31+
min-spaces-inside: 0
32+
max-spaces-inside: 1
33+
34+
# Allow both quoted and unquoted strings
35+
quoted-strings:
36+
quote-type: any
37+
required: false
38+
39+
ignore: |
40+
target/
41+
.venv/
42+
node_modules/

0 commit comments

Comments
 (0)