test: expand pre-commit to run qlib+backtesting unit tests (160+ tests)

This commit is contained in:
TPTBusiness
2026-05-03 11:05:39 +02:00
parent bd9362e2f3
commit f6f5531427
+10 -5
View File
@@ -2,18 +2,23 @@
# See https://pre-commit.com for more information
repos:
# ── Integration Tests (MANDATORY - MUST PASS before commit) ──────
# ── Qlib Unit Tests (MANDATORY) ──────────────────────────────────
- repo: local
hooks:
- id: integration-tests
name: Run Integration Tests (60 tests)
- id: qlib-unit-tests
name: Qlib Unit Tests (~190 tests)
entry: pytest
language: system
args:
- test/integration/test_all_features.py
- test/qlib/
- test/backtesting/
- -v
- --tb=short
- --no-cov # Skip coverage for speed (run separately if needed)
- --no-cov
- --ignore=test/backtesting/test_ftmo_oos.py
- --ignore=test/backtesting/test_kronos_adapter.py
- --ignore=test/backtesting/test_results_db.py
- --ignore=test/qlib/test_fin_quant_integration.py
pass_filenames: false
always_run: true