-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (38 loc) · 1.23 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (38 loc) · 1.23 KB
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
repos:
- repo: local
hooks:
- id: isort
name: isort
description: 'Sort imports'
entry: poetry run isort --profile black --line-length=80
language: system
require_serial: true
- id: autoflake
name: autoflake
description: 'Remove unused imports'
entry: "poetry run autoflake --in-place --remove-all-unused-imports \
--remove-unused-variables --expand-star-imports"
language: system
types: ['python']
require_serial: true
- id: black
name: black
description: 'Alters code for style consistency across Python projects'
entry: poetry run black --line-length 80
minimum_pre_commit_version: 2.9.2
language: system
require_serial: true
types_or: [python, pyi]
- id: flake8
name: flake8
description: 'Enforces style consistency across Python projects'
entry: poetry run flake8
language: system
require_serial: true
types: [python]
- id: yamllint
name: yamllint
description: 'Enforces style consistency for YAML files'
entry: poetry run yamllint
language: system
types_or: [yaml]