.pre-commit-config.yaml 875 Bytes
Newer Older
1
2
3
default_language_version:
    python: python3.9

4
5
default_stages: [pre-commit, pre-push, manual]

zhyncs's avatar
zhyncs committed
6
repos:
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: check-symlinks
      - id: destroyed-symlinks
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
        args: [--allow-multiple-documents]
      - id: check-toml
      - id: check-ast
      - id: check-added-large-files
      - id: check-merge-conflict
      - id: check-shebang-scripts-are-executable
      - id: detect-private-key
      - id: debug-statements
      - id: no-commit-to-branch
zhyncs's avatar
zhyncs committed
24
25
26
27
28
  - repo: https://github.com/PyCQA/isort
    rev: 5.13.2
    hooks:
      - id: isort
  - repo: https://github.com/psf/black
Chayenne's avatar
Chayenne committed
29
    rev: 24.10.0
zhyncs's avatar
zhyncs committed
30
31
    hooks:
      - id: black
Chayenne's avatar
Chayenne committed
32
33
34
        types: [python]
      - id: black-jupyter
        types: [jupyter]