forked from uxlfoundation/oneAPI-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (48 loc) · 1.21 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
# SPDX-FileCopyrightText: 2020 The Khronos Group Inc.
#
# SPDX-License-Identifier: Apache-2.0
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: LICENSES|source/elements
repos:
- repo: https://github.com/ambv/black
rev: 21.6b0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pycqa/doc8
rev: 0.9.0a1
hooks:
- id: doc8
- repo: https://github.com/fsfe/reuse-tool
rev: v0.13.0
hooks:
- id: reuse
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.9.1
hooks:
- id: isort
- repo: local
hooks:
- id: sphinx-html
name: sphinx-html
entry: python scripts/oneapi.py -W html
language: system
pass_filenames: false
always_run: true
- id: sphinx-pdf
name: sphinx-pdf
entry: python scripts/oneapi.py -W latexpdf
language: system
pass_filenames: false
always_run: true