-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.pre-commit-config.yaml
34 lines (32 loc) · 1.18 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
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
# Pre-commit does some static analysis by caching packages (can
# be found in ~/.cache/pre-commit/). When used in a virtualenv
# (like pyenv), flake8 does not work correctly withthe default
# language and the custom dnode match linter breaks.
# To get around this, pre-commit devs recommend to use it as a
# "system" hook (default is "local"). See
# https://github.com/pre-commit/pre-commit-hooks/issues/157
# for more information on this issue.
language: system
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
# TODO: This throws an error on MacOS Big Sur. Updating the rev
# to v3.3.0 does not fix the problem either. Here is the error for
# reference:
#
# could not determine a constructor for the tag 'tag:yaml.org,2002:python/tuple'
#
# - id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
language_version: python3