Skip to content

Commit

Permalink
[FMT] apply black to plotting - part 3 (#3827)
Browse files Browse the repository at this point in the history
* apply black

* apply black

* apply black

* fix
  • Loading branch information
Remi-Gau committed Jul 8, 2023
1 parent 95086d8 commit ea375e0
Show file tree
Hide file tree
Showing 7 changed files with 442 additions and 310 deletions.
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,11 @@ exclude: |
| nilearn/plotting/glass_brain.py
| nilearn/plotting/html_surface.py
| nilearn/plotting/img_plotting.py
| nilearn/plotting/matrix_plotting.py
| nilearn/plotting/js_plotting_utils.py
| nilearn/plotting/surf_plotting.py
| nilearn/plotting/tests/test_displays.py
| nilearn/plotting/tests/test_find_cuts.py
| nilearn/plotting/tests/test_html_stat_map.py
| nilearn/plotting/tests/test_html_surface.py
| nilearn/plotting/tests/test_img_plotting/test_get_colorbar_and_data_ranges.py
| nilearn/plotting/tests/test_img_plotting/test_img_plotting.py
| nilearn/plotting/tests/test_img_plotting/test_img_plotting.py
| nilearn/plotting/tests/test_img_plotting/test_plot_glass_brain.py
| nilearn/plotting/tests/test_img_plotting/test_plot_stat_map.py
| nilearn/plotting/tests/test_img_plotting/test_plot_markers.py
Expand Down
2 changes: 1 addition & 1 deletion nilearn/interfaces/fmriprep/load_confounds_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _generate_confounds_file_candidates(nii_file):
# Flatten the list of lists
all_subsets = [list(item) for sublist in all_subsets for item in sublist]
# https://stackoverflow.com/a/3724558/2589328
unique_subsets = [list(x) for x in set(tuple(x) for x in all_subsets)]
unique_subsets = [list(x) for x in {tuple(x) for x in all_subsets}]

# Require "desc"
unique_subsets = [subset for subset in unique_subsets if "desc" in subset]
Expand Down

0 comments on commit ea375e0

Please sign in to comment.