-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.08 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
# -*- coding: utf-8 -*-
# Author: Hugo Ochoa <hugo@stateoftheart.ai>
# Copyright: Stateoftheart AI PBC 2020.
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
#
repos:
# General hooks:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=3000"]
# Python Google Official Guideline hooks:
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
entry: ./.venv/bin/pylint
args:
- --load-plugins=pylint_quotes
- repo: git@github.com:pre-commit/mirrors-yapf.git
rev: v0.26.0
hooks:
- id: yapf
entry: ./.venv/bin/yapf
args: ["--style=.style.yapf", "--parallel", "--in-place"]
# Other
- repo: https://github.com/executablebooks/mdformat
rev: 0.5.4
hooks:
- id: mdformat
additional_dependencies:
- mdformat-tables
- mdformat-black