-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
58 lines (53 loc) · 1.42 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
58
default_stages: [pre-commit]
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: no-commit-to-branch
- id: check-ast
- id: check-toml
- id: end-of-file-fixer
stages: ["pre-commit"]
- id: trailing-whitespace
stages: ["pre-commit"]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: local
hooks:
- id: pyproject-flake8
name: pyproject-flake8
language: system
pass_filenames: true
entry: pflake8
types: ["python"]
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
- repo: local
hooks:
- id: check-missing-migrations
name: check-missing-migrations
entry: python /opt/netbox-dev/netbox/manage.py makemigrations netbox_data_flows --check
language: system
pass_filenames: false
types: ["python"]
stages: ["pre-push", "manual"]
- id: check-pending-migrations
name: check-pending-migrations
entry: python /opt/netbox-dev/netbox/manage.py migrate netbox_data_flows --check
language: system
pass_filenames: false
types: ["python"]
stages: ["pre-push", "manual"]
- id: run-tests
name: run-tests
entry: python /opt/netbox-dev/netbox/manage.py test --parallel auto netbox_data_flows
language: system
pass_filenames: false
types: ["python"]
stages: ["manual"]
verbose: true