-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.pre-commit-config.yaml
48 lines (48 loc) · 1.35 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
repos:
- repo: local
hooks:
- id: isort
name: isort
entry: isort
require_serial: true
language: python
language_version: python3
types_or: [cython, pyi, python]
args: ["--filter-files"]
- id: black
name: black
description: "Black: The uncompromising Python code formatter"
entry: black
language: python
minimum_pre_commit_version: 2.9.2
require_serial: true
types_or: [python, pyi]
args: [--safe, --quiet]
- id: blacken-docs
name: blacken-docs
description: Run `black` on python code blocks in documentation files
entry: blacken-docs
language: python
language_version: python3
files: '\.(rst|md|markdown|py|tex)$'
- id: pytest-check
name: pytest-check
entry: pytest
language: system
pass_filenames: false
always_run: true
args: [tests/]
- id: pytest-docs
name: pytest-docs
entry: pytest
language: system
pass_filenames: false
always_run: true
args: [--doctest-glob=*.rst, doc/pages/]
- id: sphinx
name: sphinx
entry: sphinx-build
language: system
pass_filenames: false
always_run: true
args: [-b, html, doc/, doc/_build/html]