summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
blob: f4adb4cd2ff535e5c01701251c8479f5c2a83714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.1.0
  hooks:
  - id: check-added-large-files
  - id: check-case-conflict
  - id: check-executables-have-shebangs
  - id: check-merge-conflict
  - id: check-symlinks
# - id: trailing-whitespace
# - id: end-of-file-fixer
# - id: check-yaml
# - id: check-json
# - id: check-docstring-first
# -   id: flake8
#     args: [--max-line-length=100]
- repo: https://github.com/psf/black
  rev: 22.1.0
  hooks:
  - id: black
    args: [-l, '110']
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
  rev: 0.1.0 # or specific tag
  hooks:
  - id: yamlfmt
    args: [--mapping, '2', --sequence, '2', --offset, '0', --width, '150', --preserve-quotes]
files: (^src/.*py)|(.*yaml)