-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 1.36 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
# 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: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
- 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
- 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
- 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]
exclude: ^examples/
require_serial: true
additional_dependencies:
- flake8
- flake8-docstrings