From b6a01ba3b8fc9c2a6366e7b82202e43335046ed2 Mon Sep 17 00:00:00 2001 From: TPTBusiness Date: Sun, 3 May 2026 11:05:39 +0200 Subject: [PATCH] test: expand pre-commit to run qlib+backtesting unit tests (160+ tests) --- .pre-commit-config.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9efd1182..12a5e0ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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