.pre-commit-config.yaml 1.42 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 10 11 12 13 14 15
  - 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
16
    rev: v2.2.1
17
    hooks:
Samuel GAIST's avatar
Samuel GAIST committed
18 19
      - id: check-ast
      - id: check-case-conflict
20 21 22 23 24 25 26 27 28
      - 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
Samuel GAIST's avatar
Samuel GAIST committed
29
    rev: master
30 31
    hooks:
      - id: bandit
32
        args: [-c, .bandit.yml]
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
  - 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