.pre-commit-config.yaml 1.48 KB
Newer Older
1 2 3 4 5 6 7 8
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
  - repo: https://github.com/ambv/black
    rev: stable
    hooks:
    - id: black
      language_version: python3.6
9
      exclude: beat/core/test/prefix/algorithms/errors/syntax_error/1.py|beat/core/test/prefix/databases/invalid/1.py
10 11 12 13 14 15
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.0.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: debug-statements
16
        exclude: beat/core/test/prefix/algorithms/errors/syntax_error/1.py|beat/core/test/prefix/databases/invalid/1.py
17 18 19 20 21 22 23 24 25
      - id: check-added-large-files
      - id: check-docstring-first
      - id: flake8
      - id: check-yaml
        exclude: conda/meta.yaml
  - repo: https://github.com/PyCQA/bandit
    rev: 'master' # Update me!
    hooks:
      - id: bandit
26
        exclude: beat/core/test/prefix/algorithms/errors/syntax_error/1.py|beat/core/test/prefix/databases/invalid/1.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
  - repo: local
    hooks:
      - id: sphinx-build
        name: sphinx build
        entry: python -m sphinx.cmd.build
        args: [-a, -E, -W, doc, sphinx]
        language: system
        files: ^doc/
        types: [file]
        pass_filenames: false
      - id: sphinx-doctest
        name: sphinx doctest
        entry: python -m sphinx.cmd.build
        args: [-a, -E, -b, doctest, doc, sphinx]
        language: system
        files: ^doc/
        types: [file]
        pass_filenames: false