-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
42 lines (37 loc) · 972 Bytes
/
.pre-commit-config.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- name: remove trailing whitespace
id: trailing-whitespace
- name: add newline to end of files
id: end-of-file-fixer
- name: sort requirements.txt
id: requirements-txt-fixer
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- name: sort python imports
id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- name: format python files
id: black
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- name: check python syntax
id: flake8
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- name: format Markdown files
id: mdformat
args:
- --wrap=88
- --end-of-line=keep
additional_dependencies:
- mdformat-gfm