~crocmagnon/blog

ref: f6d6d7b850df58a2f5ce8e8555f9b0328462224d blog/.pre-commit-config.yaml -rw-r--r-- 706 bytes
f6d6d7b8Gabriel Augendre Add task to notify commenters once their comment has been moderated. 6 months ago
                                                                                
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
29
30
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.2.0
    hooks:
      - id: check-ast
        types: [python]
#      - id: check-json
#        types: [json]
      - id: check-toml
        types: [toml]
#      - id: check-xml
#        types: [xml]
      - id: end-of-file-fixer
      - id: pretty-format-json
        args:
          - --autofix
          - --no-sort-keys
      - id: trailing-whitespace
        args:
          - --markdown-linebreak-ext=md
  - repo: https://github.com/timothycrosley/isort
    rev: 5.4.1
    hooks:
      - id: isort
        types: [python]
  - repo: https://github.com/psf/black
    rev: stable
    hooks:
    - id: black
      types: [python]