Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 502 Bytes

File metadata and controls

24 lines (19 loc) · 502 Bytes

Pre-commit hook

If you don't want pragma init-precommit to manage the file, drop this into your existing .pre-commit-config.yaml:

repos:
  - repo: local
    hooks:
      - id: pragma
        name: pragma verify tests
        entry: pragma verify tests
        language: system
        files: '(^|/)test_.*\.py$|/tests/.*\.py$'

Then:

pre-commit install

Every commit that touches a test file matching the regex above runs the classifier; gamed tests block the commit.