-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
111 lines (110 loc) · 3.56 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.0
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
files: ^scripts/.*|^setup.py
- repo: https://github.com/ambv/black
rev: 24.8.0
hooks:
- id: black
files: ^scripts/.*|^setup.py
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: trailing-whitespace
- id: mixed-line-ending
- id: name-tests-test
args: ['--django']
- id: check-json
- id: requirements-txt-fixer
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
exclude_types: [json]
exclude: ^(.*\.ron)|(pools*.yaml)$
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.11
hooks:
- id: taskcluster_yml
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
args: ['--exclude=SC1091,SC2148']
- repo: meta
hooks:
- id: check-useless-excludes
- repo: local
hooks:
- id: orion-service-load
name: Check that Orion services can be loaded
entry: bash -c 'cd services/orion-decision && exec tox -qq -e check -- -q ../.. "$@"' orion-check
language: system
always_run: true
require_serial: true
verbose: true
- id: grizzly-lint
name: Run linters for grizzly
entry: bash -c 'cd services/grizzly && exec tox -e lint'
language: system
require_serial: true
pass_filenames: false
types: [python]
files: ^services/grizzly/.*
- id: grizzly-android-lint
name: Run linters for grizzly-android
entry: bash -c 'cd services/grizzly-android && exec tox -e lint'
language: system
require_serial: true
pass_filenames: false
types: [python]
files: ^services/grizzly-android/.*
- id: grizzly-reduce-monitor-lint
name: Run linters for grizzly_reduce_monitor
entry: bash -c 'cd services/grizzly-reduce-monitor && exec tox -e lint'
language: system
require_serial: true
pass_filenames: false
types: [python]
files: ^services/grizzly-reduce-monitor/.*
- id: hadolint
name: Lint dockerfiles
language: system
files: "Dockerfile(-[A-Za-z_.-]+)?"
require_serial: true
entry: ./scripts/pre-commit-hadolint.sh
- id: fuzzing-decision-lint
name: Run linters for fuzzing_decision
entry: bash -c 'cd services/fuzzing-decision && exec tox -e lint'
language: system
require_serial: true
pass_filenames: false
types: [python]
files: ^services/fuzzing-decision/.*
- id: orion-decision-lint
name: Run linters for orion_decision
entry: bash -c 'cd services/orion-decision && exec tox -e lint'
language: system
require_serial: true
pass_filenames: false
types: [python]
files: ^services/orion-decision/.*
- id: orion-builder-lint
name: Run linters for orion_builder
entry: bash -c 'cd services/orion-builder && exec tox -e lint'
language: system
require_serial: true
pass_filenames: false
types: [python]
files: ^services/orion-builder/.*
default_language_version:
python: python3