-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.3 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- repo: local
hooks:
- id: black
name: black
entry: poetry run black
language: system
require_serial: true
types: [python]
- id: isort
name: isort
entry: poetry run isort
require_serial: true
language: system
types: [python]
args: ['--filter-files']
- id: mypy
name: mypy
entry: poetry run mypy
require_serial: true
language: system
types: [python]
exclude: docs/conf.py
- id: pylint
entry: poetry run pylint --rcfile=.pylintrc
name: pylint
language: system
types: [file, python]
# when passing in a single file as argument the ignore entry in the .pylintrc does
# not seem to be considered.
exclude: .*(venv|\.conf\.py)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
hooks:
- id: prettier
files: .*(\.js|\.graphql|\.json|\.md)$