.pre-commit-config.yaml 1.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
# 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
      exclude: beat/core/test/prefix/algorithms/user/syntax_error/1.py|beat/core/test/prefix/databases/invalid/1.py
  - repo: https://github.com/pre-commit/pre-commit-hooks
11
    rev: v2.2.1
12 13 14 15 16 17 18 19 20 21
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: debug-statements
      - id: check-added-large-files
      - id: check-docstring-first
      - id: flake8
      - id: check-yaml
        exclude: conda/meta.yaml
  - repo: https://github.com/PyCQA/bandit
22
    rev: master # Update me!
23 24
    hooks:
      - id: bandit
25
        args: [-c, .bandit.yml]
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
  - 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