-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
44 lines (42 loc) · 1.14 KB
/
.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
43
44
default_language_version:
python: python3.8
ci:
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: check-case-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
# - repo: https://github.com/PyCQA/pydocstyle todo decomment and add api docs
# rev: 6.1.1
# hooks:
# - id: pydocstyle
# name: Check docs
# files: ^classy/
# language_version: python3.8
# args: ["--convention=google"]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
name: Format imports
files: ^classy/
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
name: Format code
files: ^classy/
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
name: Format code in docs
additional_dependencies: [ black==21.12b0 ]