File tree Expand file tree Collapse file tree 3 files changed +13
-37
lines changed Expand file tree Collapse file tree 3 files changed +13
-37
lines changed Original file line number Diff line number Diff line change 40
40
runs-on : ubuntu-latest
41
41
if : ${{ needs.changes.outputs.changes == 'true' }}
42
42
steps :
43
- - uses : actions/checkout@v2
44
- - name : Set up Python
45
- uses : actions/setup-python@v1
46
- with :
47
- python-version : 3.7
48
- - name : Install dependencies
49
- run : |
50
- python -m pip install -U pip
51
- python -m pip install -U black flake8 isort
52
- - name : Check the style
53
- run : |
54
- black -t py36 --check theano/ tests/ setup.py conftest.py
55
- isort --check theano/ tests/ setup.py conftest.py
56
- flake8
43
+ - uses : actions/checkout@v2
44
+ - uses : actions/setup-python@v2
45
+ -
uses :
pre-commit/[email protected]
57
46
58
47
test :
59
48
name : " Test py${{ matrix.python-version }}: ${{ matrix.part }}"
63
52
runs-on : ubuntu-latest
64
53
if : ${{ needs.changes.outputs.changes == 'true' && needs.style.result == 'success' }}
65
54
strategy :
66
- fail-fast : false
55
+ fail-fast : true
67
56
matrix :
68
57
python-version : ["3.6", "3.7"]
69
58
fast-compile : [0]
Original file line number Diff line number Diff line change
1
+ exclude : |
2
+ (?x)^(
3
+ versioneer\.py|
4
+ theano/_version\.py|
5
+ doc/.*|
6
+ bin/.*
7
+ )$
1
8
repos :
2
9
- repo : https://github.com/psf/black
3
10
rev : 20.8b1
4
11
hooks :
5
12
- id : black
6
13
language_version : python3
7
- exclude : |
8
- (?x)^(
9
- versioneer\.py|
10
- theano/_version\.py|
11
- doc/.*|
12
- bin/.*
13
- )$
14
14
- repo : https://gitlab.com/pycqa/flake8
15
15
rev : 3.8.4
16
16
hooks :
17
17
- id : flake8
18
- exclude : |
19
- (?x)^(
20
- versioneer\.py|
21
- theano/_version\.py|
22
- doc/.*|
23
- bin/.*
24
- )$
25
18
- repo : https://github.com/pycqa/isort
26
- rev : 5.5.2
19
+ rev : 5.6.4
27
20
hooks :
28
21
- id : isort
29
- exclude : |
30
- (?x)^(
31
- versioneer\.py|
32
- theano/_version\.py|
33
- doc/.*|
34
- bin/.*
35
- )$
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ per-file-ignores =
18
18
tests/gpuarray/test_elemwise.py:E402
19
19
tests/gpuarray/test_others.py:E402
20
20
tests/gpuarray/test_basic_ops.py:E402
21
+ theano/gof/unify.py:F811
21
22
exclude =
22
23
versioneer.py
23
24
doc/
You can’t perform that action at this time.
0 commit comments