forked from pypa/sampleproject
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.46 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
types_or: [json, yaml, css, javascript]
pass_filenames: false
# black should have the final say on python formatting, so it comes last
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
name: format code (black)
- repo: local
hooks:
- id: pytest
name: pytest
entry: make test
language: system
pass_filenames: false
files: "^template/"
stages: [push]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v7.3.0
hooks:
- id: cspell
name: check spelling (cspell)
args:
[
--show-suggestions,
--show-context,
--no-must-find-files,
--config,
.vscode/cspell.json,
]
- repo: https://github.com/bjd2385/pre-commit-gitlabci-lint
rev: v1.3.0
hooks:
- id: gitlabci-lint
args: ["-p", "46207681"] # project id is required, but any will do
entry: env GITLAB_TOKEN=w8i5Q1CaEpF57cqxezvG gitlabci-lint
files: "^\\.gitlab-ci\\.yml$"