# Configuration for pre-commit (https://pre-commit.com/), a tool to run
# formatters, linters, and other productivity tools before a commit.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v2.5.0
  hooks:
  - id: check-ast
  - id: check-builtin-literals
  - id: check-case-conflict
  - id: check-docstring-first
  - id: requirements-txt-fixer
  - id: check-yaml
  - id: end-of-file-fixer
    # Test golden references
    exclude: ^tests/(.+\.(info|patch)|test_provider/.+\.v)
  - id: trailing-whitespace
    # Test golden references
    exclude: ^tests/(.+\.(info|patch)|test_provider/.+\.v)
- repo: https://github.com/psf/black
  rev: 19.10b0
  hooks:
  - id: black
- repo: https://github.com/asottile/pyupgrade
  rev: v2.1.0
  hooks:
  - id: pyupgrade
    # for now don't force to change from %-operator to {}
    args: [--keep-percent-format, --py3-plus]

# Configuration for pre-commit (https://pre-commit.com/), a tool to run
# formatters, linters, and other productivity tools before a commit.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v2.5.0
  hooks:
  - id: check-ast
  - id: check-builtin-literals
  - id: check-case-conflict
  - id: check-docstring-first
  - id: requirements-txt-fixer
  - id: check-yaml
    types: [file]
    files: ^tests/capi2_cores/.+\.core$
  - id: end-of-file-fixer
    # Test golden references
    exclude: ^tests/(.+\.(info|patch)|test_provider/.+\.v)
  - id: trailing-whitespace
    # Test golden references
    exclude: ^tests/(.+\.(info|patch)|test_provider/.+\.v)
- repo: https://github.com/psf/black
  rev: 19.10b0
  hooks:
  - id: black
- repo: https://github.com/asottile/pyupgrade
  rev: v2.1.0
  hooks:
  - id: pyupgrade
    # for now don't force to change from %-operator to {}
    args: [--keep-percent-format, --py3-plus]

Check CAPI2 core files for valid YAML syntax
Check CAPI2 core files for valid YAML syntax
