File tree 7 files changed +314
-244
lines changed
7 files changed +314
-244
lines changed Original file line number Diff line number Diff line change 30
30
with :
31
31
python-version : ${{ matrix.python-version }}
32
32
channels : conda-forge
33
-
33
+
34
34
- name : Prepare
35
35
run : conda install conda-build conda-verify
36
36
Original file line number Diff line number Diff line change
1
+ # To use:
2
+ #
3
+ # pre-commit run -a
4
+ #
5
+ # Or:
6
+ #
7
+ # pre-commit install # (runs every time you commit in git)
8
+ #
9
+ # To update this file:
10
+ #
11
+ # pre-commit autoupdate
12
+ #
13
+ # See https://github.com/pre-commit/pre-commit
14
+
15
+ ci :
16
+ autoupdate_commit_msg : " chore: update pre-commit hooks"
17
+ autofix_commit_msg : " style: pre-commit fixes"
18
+
19
+ repos :
20
+ # Standard hooks
21
+ - repo : https://github.com/pre-commit/pre-commit-hooks
22
+ rev : v4.0.1
23
+ hooks :
24
+ - id : check-added-large-files
25
+ - id : check-case-conflict
26
+ - id : check-merge-conflict
27
+ - id : check-symlinks
28
+ - id : check-yaml
29
+ exclude : ^conda\.recipe/meta\.yaml$
30
+ - id : debug-statements
31
+ - id : end-of-file-fixer
32
+ - id : mixed-line-ending
33
+ - id : requirements-txt-fixer
34
+ - id : trailing-whitespace
35
+
36
+ # Black, the code formatter, natively supports pre-commit
37
+ - repo : https://github.com/psf/black
38
+ rev : 21.9b0
39
+ hooks :
40
+ - id : black
41
+ files : ^(docs)
42
+
43
+ # Sort your imports in a standard form
44
+ - repo : https://github.com/PyCQA/isort
45
+ rev : 5.9.3
46
+ hooks :
47
+ - id : isort
48
+
49
+ # Upgrade older Python syntax
50
+ - repo : https://github.com/asottile/pyupgrade
51
+ rev : v2.29.0
52
+ hooks :
53
+ - id : pyupgrade
54
+ args : ["--py36-plus"]
55
+
56
+ # Changes tabs to spaces
57
+ - repo : https://github.com/Lucas-C/pre-commit-hooks
58
+ rev : v1.1.10
59
+ hooks :
60
+ - id : remove-tabs
61
+
62
+ # Suggested hook if you add a .clang-format file
63
+ # - repo: https://github.com/pre-commit/mirrors-clang-format
64
+ # rev: v13.0.0
65
+ # hooks:
66
+ # - id: clang-format
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ python_example
21
21
[ actions-wheels-link ] : https://github.com/pybind/python_example/actions?query=workflow%3AWheels
22
22
[ actions-wheels-badge ] : https://github.com/pybind/python_example/workflows/Wheels/badge.svg
23
23
[ travis-link ] : https://travis-ci.org/pybind/python_example
24
- [ travis-badge] : https://travis-ci.org/pybind/python_example.svg?branch=master&status=passed
24
+ [ travis-badge ] : https://travis-ci.org/pybind/python_example.svg?branch=master&status=passed
25
25
[ appveyor-link ] : https://ci.appveyor.com/project/wjakob/python-example
26
26
<!-- TODO: get a real badge link for appveyor -->
27
27
[ appveyor-badge ] : https://travis-ci.org/pybind/python_example.svg?branch=master&status=passed
You can’t perform that action at this time.
0 commit comments