File tree 3 files changed +16
-8
lines changed 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ defaults:
26
26
run :
27
27
shell : bash
28
28
29
+ # Force tox and pytest to use color
30
+ env :
31
+ FORCE_COLOR : true
32
+
29
33
concurrency :
30
34
group : ${{ github.workflow }}-${{ github.ref }}
31
35
cancel-in-progress : true
@@ -195,13 +199,13 @@ jobs:
195
199
runs-on : ubuntu-latest
196
200
environment : " Package deployment"
197
201
needs : [test, test-package]
202
+ permissions :
203
+ # Required for trusted publishing
204
+ id-token : write
198
205
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
199
206
steps :
200
207
- uses : actions/download-artifact@v3
201
208
with :
202
209
name : dist
203
210
path : dist/
204
211
- uses : pypa/gh-action-pypi-publish@release/v1
205
- with :
206
- user : __token__
207
- password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -1637,9 +1637,7 @@ def set_slice_times(self, slice_times):
1637
1637
labels .remove ('unknown' )
1638
1638
1639
1639
matching_labels = [
1640
- label
1641
- for label in labels
1642
- if np .all (st_order == self ._slice_time_order (label , n_timed ))
1640
+ label for label in labels if np .all (st_order == self ._slice_time_order (label , n_timed ))
1643
1641
]
1644
1642
1645
1643
if not matching_labels :
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ pass_env =
63
63
USERNAME
64
64
# Environment variables we check for
65
65
NIPY_EXTRA_TESTS
66
+ # Pass user color preferences through
67
+ PY_COLORS
68
+ FORCE_COLOR
69
+ NO_COLOR
70
+ CLICOLOR
71
+ CLICOLOR_FORCE
66
72
extras = test
67
73
deps =
68
74
# General minimum dependencies: pin based on API usage
@@ -139,8 +145,8 @@ deps =
139
145
isort[colors]
140
146
skip_install = true
141
147
commands =
142
- blue --diff --color nibabel
143
- isort --diff --color nibabel
148
+ blue --check -- diff --color nibabel
149
+ isort --check -- diff --color nibabel
144
150
flake8 nibabel
145
151
146
152
[testenv:style-fix]
You can’t perform that action at this time.
0 commit comments