-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.19 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
fail_fast: false
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: [ --profile, black, --filter-files ]
- repo: local
hooks:
- id: black
name: black
entry: poetry run black
language: system
require_serial: true
types_or: [ python, pyi ]
- id: pylint
name: pylint
entry: poetry run pylint --min-similarity-lines 8
language: system
types: [ python ]
require_serial: true
- id: mypy
name: mypy
language: system
files: foxai
types: [ python ]
entry: poetry run mypy
args: ["--ignore-missing-imports"]
- id: pytest
name: pytest
files: tests/
entry: poetry run pytest tests/
language: system
pass_filenames: false
- id: locks
name: Update locks
files: pyproject.toml
entry: poetry lock
language: system
pass_filenames: false