* fix(settings): gray out Dictation Tone while sound effects are off The Enable Sound Effects switch mutes every dictation cue, so the tone picker changed nothing while it was off. The row now goes insensitive with the switch and follows the state loaded from config, matching the keep-alive timeout and auto-pause sensitivity pattern. Also bump the pre-commit isort pin 5.13.2 -> 8.0.1 to match uv.lock: the two versions disagree on single-name import wrapping, so the old hook collapsed imports the locked isort (and CI) then expanded back. Fixes #849 * test(settings): cover tone-row sensitivity on settings load --------- Co-authored-by: Jatin K Malik <jatinkrmalik@gmail.com>
37 lines
912 B
YAML
37 lines
912 B
YAML
# Pre-commit hooks for Vocalinux
|
|
# Run: pre-commit run --all-files
|
|
|
|
repos:
|
|
# Code formatting with Black
|
|
- repo: https://github.com/psf/black
|
|
rev: 26.1.0
|
|
hooks:
|
|
- id: black
|
|
language_version: python3
|
|
files: ^(src|tests)/
|
|
|
|
# Import sorting with isort (black-compatible)
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 8.0.1
|
|
hooks:
|
|
- id: isort
|
|
args: ["--profile", "black"]
|
|
files: ^(src|tests)/
|
|
|
|
# Linting with flake8 (critical errors only)
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args: ["--select=E9,F63,F7,F82", "--max-line-length=100"]
|
|
files: ^(src|tests)/
|
|
|
|
# Basic file checks
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|