-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy path.pre-commit-config.yaml
44 lines (44 loc) · 1.09 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-merge-conflict
- id: check-json
- id: requirements-txt-fixer
- repo: local
hooks:
- id: black
name: black
entry: black
language: python
types_or: [python, pyi]
additional_dependencies: ["black[jupyter]~=24.4.2"]
- repo: local
hooks:
- id: isort
name: isort
entry: isort
language: python
types_or: [python, pyi]
additional_dependencies: [isort~=5.13.2]
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: python
types: [python]
args: ["poutyne", "tests"]
additional_dependencies: [flake8==7.1.0]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: ["poutyne", "tests", "-rn"]
# additional_dependencies: [pylint==2.12.1]