-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
57 lines (56 loc) · 1.45 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
52
53
54
55
56
57
exclude: 'assets/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
- 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
entry: black
language: python
types: [python]
- id: mypy
name: mypy
language: python
entry: mypy
args: [--config-file, pyproject.toml]
exclude: /_tests/
exclude: tests/
# use your preferred Python version
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]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit