-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (40 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (40 loc) · 1.29 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
repos:
- repo: https://github.com/golangci/golangci-lint
# Sync with the version in .github/workflows/lint.yml
rev: v1.64.8
hooks:
- id: golangci-lint
- repo: local
hooks:
- id: validate-python-fix
name: validate-python-fix
language: system
entry: dda validate python
args: [--fix]
require_serial: true
additional_dependencies: []
types_or: [python, pyi]
minimum_pre_commit_version: "2.9.2"
- repo: local
hooks:
- id: validate-python
name: validate-python
entry: dda validate python
language: system # Use local install for pyright, else we cannot import the requirements and we get errors on external libraries
require_serial: true
additional_dependencies: []
types_or: [python, pyi]
minimum_pre_commit_version: "2.9.2"
- id: go-tidy
name: go-tidy
entry: go mod tidy
files: .*\.go$
language: system
pass_filenames: false
- id: protected-branches
name: protected-branches
description: checks that the commit isn't created on a protected branch
entry: "inv ci.check-protected-branch"
language: system
pass_filenames: false
stages: [pre-commit, pre-push]