forked from Andrwe/privoxy-blocklist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
93 lines (93 loc) · 2.32 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args:
- '--allow-multiple-documents'
- id: check-json
- id: check-added-large-files
- id: check-symlinks
- id: destroyed-symlinks
- id: check-executables-have-shebangs
- id: requirements-txt-fixer
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.7.0.1
hooks:
- id: shfmt
args:
- "--binary-next-line"
- "--case-indent"
- "--indent"
- "4"
- "--space-redirects"
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0.3
hooks:
- id: hadolint
args:
- '--ignore'
- 'DL3007'
- '--ignore'
- 'DL3008'
- '--ignore'
- 'DL3013'
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args:
- '--profile'
- 'black'
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
args:
- '--max-line-length'
- '99'
- repo: https://github.com/PyCQA/prospector
rev: v1.10.3
hooks:
- id: prospector
args:
- '--profile'
- '.ci_config/prospector.yaml'
additional_dependencies:
# cannot use with_ syntax as pre-commit.ci does not support it
- bandit
- mccabe
- mypy
- pydocstyle
- pylint
- pytest
- pytest-shell-utilities
- requests
- types-requests
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.28.0
hooks:
- id: check-github-workflows
- id: check-github-actions
- repo: local
hooks:
- id: permission-check
name: check permissions using pytest
entry: pytest -v -s -k test_permissions tests/test_00_minimal.py
language: python
pass_filenames: false
additional_dependencies:
- pytest
- pytest-shell-utilities
- requests