forked from sphinx-contrib/multiversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (41 loc) · 1014 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
- id: flake8
- id: check-merge-conflict
- id: check-yaml
- id: check-executables-have-shebangs
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
- repo: local
hooks:
- id: version-check
name: version-check
description: "Check if version is consistent in all source files"
entry: .pre-commit/version_check.py
pass_filenames: false
stages:
- commit
- manual
language: python
files: ^(\.pre-commit/version_check\.py|setup\.py|sphinx_multiversion/__init__\.py|docs/conf\.py|docs/changelog\.rst)$
additional_dependencies:
- sphinx
- id: unittest
name: unittest
description: "Run unittests"
entry: python -m unittest discover
pass_filenames: false
language: python
types:
- python
stages:
- commit
- manual
additional_dependencies:
- sphinx