-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (58 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (58 loc) · 1.51 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
59
60
# .pre-commit-config.yaml
exclude: 'docs|node_modules|migrations|terraform|.git|.tox'
default_stages: [pre-commit]
fail_fast: true
repos:
- repo: local
hooks:
- id: isort
name: isort
stages: [pre-commit]
language: system
entry: isort
types: [python]
args: [ "--profile", "black" ]
- id: black
name: black
stages: [pre-commit]
language: python
entry: black memstate
types: [python]
- id: bandit
name: bandit
stages: [pre-commit]
language: system
entry: bandit -r memstate
types: [python]
pass_filenames: false
- id: mypy
name: mypy
stages: [pre-commit]
language: system
entry: bash -c 'PYTHONPATH="$PYTHONPATH:$PWD" mypy'
types: [python]
pass_filenames: false
- id: ruff
name: ruff
stages: [ pre-commit ]
language: system
entry: ruff check memstate
types: [ python ]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-yaml
- id: check-toml
- id: check-json
- id: debug-statements
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
- id: check-added-large-files
- id: check-ast
- id: check-symlinks
- id: forbid-new-submodules