mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 15:37:44 +00:00
e884034f6b
- Remove optional code quality hooks (black, isort, ruff, mypy, toml-sort) * These blocked commits when tools not installed * Users can run them manually when needed - Keep only MANDATORY hooks: * Integration Tests (60 tests, ~7.5s) * Bandit Security Scan - Both MUST pass before every commit
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# Pre-commit hooks configuration for Predix
|
|
# See https://pre-commit.com for more information
|
|
|
|
repos:
|
|
# ── Integration Tests (MANDATORY - MUST PASS before commit) ──────
|
|
- repo: local
|
|
hooks:
|
|
- id: integration-tests
|
|
name: Run Integration Tests (60 tests)
|
|
entry: pytest
|
|
language: system
|
|
args:
|
|
- test/integration/test_all_features.py
|
|
- -v
|
|
- --tb=short
|
|
- --no-cov # Skip coverage for speed (run separately if needed)
|
|
pass_filenames: false
|
|
always_run: true
|
|
|
|
# ── Security Scanning (MANDATORY) ─────────────────────────────────
|
|
- repo: local
|
|
hooks:
|
|
- id: bandit-security-scan
|
|
name: Bandit Security Scan
|
|
entry: bandit
|
|
language: system
|
|
args:
|
|
- -r
|
|
- rdagent/
|
|
- -c
|
|
- .bandit.yml
|
|
- --severity-level=medium
|
|
- --confidence-level=medium
|
|
- --format=txt
|
|
pass_filenames: false
|
|
always_run: true
|