-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.65 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
# 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
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: pytype
# name: pytype - A static type analyzer for Python code
# description: Pytype checks and infers types for your Python code - without requiring type annotations.
# entry: pytype
# args: ["--config=pytype.cfg", "--jobs auto"]
# language: python
# types: [python]
# require_serial: true
# verbose: true
# additional_dependencies:
# - pytype==2022.6.30