-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.13 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/python-poetry/poetry
rev: '1.6.0'
hooks:
- id: poetry-check
- id: poetry-lock
args: ["--no-update"]
- repo: local
hooks:
- id: isort
name: "Sort imports"
language: system
types: [ file, python ]
entry: isort
- id: black
name: "Format the code according to pep8 standards"
language: system
types: [ file, python ]
entry: black pyuow/ tests/
- id: autoflake
name: "Remove unused imports and unused variables"
language: system
types: [ file, python ]
entry: autoflake
- id: mypy
language: system
name: "Type annotations check"
types: [ file, python ]
entry: mypy pyuow/
pass_filenames: false