.pre-commit-config.yaml 1.38 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
  - repo: https://github.com/timothycrosley/isort
5
    rev: 5.0.5
Samuel GAIST's avatar
Samuel GAIST committed
6 7 8
    hooks:
    - id: isort
      args: [-sl]
9
  - repo: https://github.com/psf/black
10
    rev: 19.10b0
11 12 13
    hooks:
    - id: black
  - repo: https://github.com/pre-commit/pre-commit-hooks
14
    rev: v3.1.0
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
      - id: check-added-large-files
      - id: check-docstring-first
      - id: check-yaml
        exclude: conda/meta.yaml
26 27 28 29
  - repo: https://github.com/PyCQA/flake8/
    rev: 3.8.3
    hooks:
      - id: flake8
30
  - repo: https://github.com/PyCQA/bandit
31
    rev: 1.6.2
32 33
    hooks:
      - id: bandit
34
        args: [-c, .bandit.yml]
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
  - 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