generated from Clarifai/module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (34 loc) · 939 Bytes
/
.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
default_stages:
- commit
- manual
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: local
hooks:
- id: autofalke
name: autoflake
entry: autoflake --remove-all-unused-imports --remove-unused-variables -i
language: python
types: [ python ]
pass_filenames: true
additional_dependencies: ["autoflake==1.4"]
- id: yapf
name: yapf
entry: yapf -i
language: python
types: [ python ]
pass_filenames: true
additional_dependencies: [ "yapf==0.19.0" ]