.pre-commit-config.yaml 1.32 KB
Newer Older
1 2 3
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
Samuel GAIST's avatar
Samuel GAIST committed
4 5 6 7 8
  - repo: https://github.com/timothycrosley/isort
    rev: 4.3.21-2
    hooks:
    - id: isort
      args: [-sl]
9
  - repo: https://github.com/psf/black
10 11 12 13
    rev: stable
    hooks:
    - id: black
  - repo: https://github.com/pre-commit/pre-commit-hooks
14
    rev: v2.2.1
15
    hooks:
Samuel GAIST's avatar
Samuel GAIST committed
16 17
      - id: check-ast
      - id: check-case-conflict
18 19 20
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: debug-statements
21
        exclude: beat/cmdline/test/utils.py
22 23 24 25 26 27
      - id: check-added-large-files
      - id: check-docstring-first
      - id: flake8
      - id: check-yaml
        exclude: conda/meta.yaml
  - repo: https://github.com/PyCQA/bandit
Samuel GAIST's avatar
Samuel GAIST committed
28
    rev: master
29 30
    hooks:
      - id: bandit
31
        args: [-c, .bandit.yml]
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  - 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