File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed
Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ defaults:
2626 run :
2727 shell : bash
2828
29+ # Force tox and pytest to use color
30+ env :
31+ FORCE_COLOR : true
32+
2933concurrency :
3034 group : ${{ github.workflow }}-${{ github.ref }}
3135 cancel-in-progress : true
@@ -195,13 +199,13 @@ jobs:
195199 runs-on : ubuntu-latest
196200 environment : " Package deployment"
197201 needs : [test, test-package]
202+ permissions :
203+ # Required for trusted publishing
204+ id-token : write
198205 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
199206 steps :
200207 - uses : actions/download-artifact@v3
201208 with :
202209 name : dist
203210 path : dist/
204211 - 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):
16371637 labels .remove ('unknown' )
16381638
16391639 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 ))
16431641 ]
16441642
16451643 if not matching_labels :
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ pass_env =
6363 USERNAME
6464 # Environment variables we check for
6565 NIPY_EXTRA_TESTS
66+ # Pass user color preferences through
67+ PY_COLORS
68+ FORCE_COLOR
69+ NO_COLOR
70+ CLICOLOR
71+ CLICOLOR_FORCE
6672extras = test
6773deps =
6874 # General minimum dependencies: pin based on API usage
@@ -139,8 +145,8 @@ deps =
139145 isort[colors]
140146skip_install = true
141147commands =
142- blue --diff --color nibabel
143- isort --diff --color nibabel
148+ blue --check -- diff --color nibabel
149+ isort --check -- diff --color nibabel
144150 flake8 nibabel
145151
146152[testenv:style-fix]
You can’t perform that action at this time.
0 commit comments