forked from vacanza/holidays
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (45 loc) · 1.29 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
45
46
47
48
49
50
51
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/python/black
rev: 22.1.0
hooks:
- id: black
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [--max-line-length=79]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.931'
hooks:
- id: mypy
additional_dependencies: [types-all]
args:
- --ignore-missing-imports
- --show-error-codes
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: rst-backticks
# Temporarily disabled due to unable to suppress
# [WinError 2] The system cannot find the file specified
# - repo: https://github.com/myint/rstcheck
# rev: 3f92957478422df87bd730abde66f089cc1ee19b
# hooks:
# - id: rstcheck
# additional_dependencies: [rstcheck]
# args: [--ignore-directives=automodule]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.0
hooks:
- id: setup-cfg-fmt