-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (42 loc) · 1.2 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (42 loc) · 1.2 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Use `pre-commit install` to install the hooks
files: '^python/.*$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: '22.6.0'
hooks:
- id: black
# WARNING: If you change this, also change `FULL_LINT_FILES` in
# `.circleci/config.yml`.
files: &full_lint_files |
(?x)^(
python/curriculum.py|
python/sgfmill/__init__.py
)$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
hooks:
- id: codespell
args: ["--skip=*.ipynb,*.sgf,*.sgfs"]
- repo: https://github.com/terrencepreilly/darglint
rev: v1.8.1
hooks:
- id: darglint
files: *full_lint_files
- repo: https://github.com/pycqa/flake8
rev: '5.0.4'
hooks:
- id: flake8
files: *full_lint_files
- repo: https://github.com/mattseymour/pre-commit-pytype
rev: '2022.4.26'
hooks:
- id: pytype
args: []