##// END OF EJS Templates
[pre-commit] Add initial configuration
Samuel Gaist -
Show More
@@ -0,0 +1,16 b''
1 # See https://pre-commit.com for more information
2 # See https://pre-commit.com/hooks.html for more hooks
3 repos:
4 - repo: https://github.com/pre-commit/pre-commit-hooks
5 rev: v3.2.0
6 hooks:
7 - id: trailing-whitespace
8 - id: end-of-file-fixer
9 - id: check-yaml
10 - id: check-added-large-files
11
12 - repo: https://github.com/akaihola/darker
13 rev: 1.3.1
14 hooks:
15 - id: darker
16
@@ -1,47 +1,48 b''
1 include README.rst
1 include README.rst
2 include COPYING.rst
2 include COPYING.rst
3 include LICENSE
3 include LICENSE
4 include setupbase.py
4 include setupbase.py
5 include setupegg.py
5 include setupegg.py
6 include MANIFEST.in
6 include MANIFEST.in
7 include pytest.ini
7 include pytest.ini
8 include mypy.ini
8 include mypy.ini
9 include .mailmap
9 include .mailmap
10 include .flake8
10 include .flake8
11 include .pre-commit-config.yaml
11
12
12 recursive-exclude tools *
13 recursive-exclude tools *
13 exclude tools
14 exclude tools
14 exclude CONTRIBUTING.md
15 exclude CONTRIBUTING.md
15 exclude .editorconfig
16 exclude .editorconfig
16
17
17 graft setupext
18 graft setupext
18
19
19 graft scripts
20 graft scripts
20
21
21 # Load main dir but exclude things we don't want in the distro
22 # Load main dir but exclude things we don't want in the distro
22 graft IPython
23 graft IPython
23
24
24 # Documentation
25 # Documentation
25 graft docs
26 graft docs
26 exclude docs/\#*
27 exclude docs/\#*
27 exclude docs/man/*.1.gz
28 exclude docs/man/*.1.gz
28
29
29 exclude .git-blame-ignore-revs
30 exclude .git-blame-ignore-revs
30
31
31 # Examples
32 # Examples
32 graft examples
33 graft examples
33
34
34 # docs subdirs we want to skip
35 # docs subdirs we want to skip
35 prune docs/build
36 prune docs/build
36 prune docs/gh-pages
37 prune docs/gh-pages
37 prune docs/dist
38 prune docs/dist
38
39
39 # Patterns to exclude from any directory
40 # Patterns to exclude from any directory
40 global-exclude *~
41 global-exclude *~
41 global-exclude *.flc
42 global-exclude *.flc
42 global-exclude *.yml
43 global-exclude *.yml
43 global-exclude *.pyc
44 global-exclude *.pyc
44 global-exclude *.pyo
45 global-exclude *.pyo
45 global-exclude .dircopy.log
46 global-exclude .dircopy.log
46 global-exclude .git
47 global-exclude .git
47 global-exclude .ipynb_checkpoints
48 global-exclude .ipynb_checkpoints
General Comments 0
You need to be logged in to leave comments. Login now