-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
57 lines (57 loc) · 1.7 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
52
53
54
55
56
57
# This file contains the [pre-commit](https://pre-commit.com/) configuration of this repository.
# More on which specific pre-commit hooks we use can be found in README.md.
---
minimum_pre_commit_version: "2.9.2"
repos:
- repo: meta
hooks:
- id: identity
- id: check-hooks-apply
- repo: local
hooks:
- id: isort
name: iSort - Sorts imports.
description: Sorts your import for you.
entry: isort
language: python
types:
- python
require_serial: true
exclude: examples/*
additional_dependencies:
- isort==5.10.1
- id: black
name: Black - Auto-formatter.
description: Black is the uncompromising Python code formatter. Writing to files.
entry: black
language: python
types:
- python
require_serial: true
additional_dependencies:
- black==22.6.0
- id: flake8
name: Flake8 - Enforce code style and doc.
description: A command-line utility for enforcing style consistency across Python projects.
entry: flake8
args:
- --config=.flake8
language: python
types:
- python
require_serial: true
additional_dependencies:
- flake8==4.0.1
- id: mypy
name: mypy - Static type checking
description: Mypy helps ensure that we use our functions and variables correctly by checking the types.
entry: mypy
args:
- --ignore-missing-imports
- --scripts-are-modules
language: python
types:
- python
require_serial: true
additional_dependencies:
- mypy==0.961