-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (52 loc) · 1.38 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (52 loc) · 1.38 KB
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
58
exclude: ".venv|test*|.git|epd*"
default_stages: [commit]
fail_fast: false
repos:
- repo: local
hooks:
- id: black-check
name: black-check
entry: black .
language: system
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: mypy-check
name: mypy-check
entry: mypy .
language: system
pass_filenames: false
always_run: true
- repo: https://gitlab.com/pycqa/flake8
rev: "3.9.2"
hooks:
- id: flake8
name: flake8-check
description: "flake8 is a command-line utility for enforcing style consistency across Python projects."
entry: flake8
language: python
types: [python]
require_serial: true
args: ["--config=.flake8"]
- repo: https://github.com/myint/eradicate
rev: v2.0.0
hooks:
- id: eradicate
language_version: python3.9
entry: eradicate
files: '\.py$'
args: [ --in-place ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=500']
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.1
hooks:
- id: python-safety-dependencies-check
args: [--json, -i 38678]