-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.16 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
# 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: check-case-conflict
- id: check-docstring-first
- id: check-symlinks
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [ --remove ]
- id: mixed-line-ending
args: [ --fix=lf ]
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-docstrings
- flake8-picky-parentheses
- flake8-quotes
- pep8-naming
- repo: local
hooks:
- id: mypy
name: mypy static type check
entry: mypy
args: [ --show-error-codes, src, tests ]
'types_or': [ python, pyi ]
language: system
pass_filenames: false
require_serial: true