forked from janus-llm/janus-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.36 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
48
49
50
51
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://gitlab.com/smop/pre-commit-hooks
rev: v1.0.0
hooks:
- id: check-poetry
name: check Poetry TOML
description: Validates the structure of the pyproject.toml file
entry: poetry check
language: system
pass_filenames: false
files: pyproject.toml
- repo: local
hooks:
- id: black
name: black
language: python
entry: black
args: [--config, pyproject.toml]
types: [python]
- id: isort
name: isort
language: python
entry: isort
args: [--profile, black, --trailing-comma, -m=3]
types: [python]
- id: flake8
name: flake8
language: python
entry: flake8
args: [--config=.flake8]
types: [python]
# - id: bandit
# name: bandit
# language: python
# entry: bandit
# args: [-r, .]
# types: [python]
# - id: pydocstyle
# name: pydocstyle
# language: python
# entry: pydocstyle
# args: [--ignore=D100,D101,D102,D103,D104,D105,D107]
# types: [python]