forked from abhishek-kumar/ml-edge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
38 lines (38 loc) · 1009 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
35
36
37
38
default_install_hook_types: [pre-commit, pre-push]
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-yaml
- id: debug-statements
- id: name-tests-test
args:
- "--pytest-test-first"
- id: requirements-txt-fixer
- repo: local
hooks:
- id: isort
name: isort
entry: isort
language: system
types: [python]
description: Run isort to add import headers, and sort imports
- id: black
name: black
entry: black
language: system
types: [python]
description: Run black to format Python code
- id: hadolint
name: Lint Dockerfiles
entry: hadolint
description: Run hadolint to lint Dockerfiles
language: system
types: ["dockerfile"]
- repo: https://github.com/zahorniak/pre-commit-circleci.git
rev: v0.6
hooks:
- id: circleci_validate
description: Validate `.circleci/config.yml` file