-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MAINT] add workflow to check for f strings (#3759)
* add workflow for flynt * configure and run flynt * flake8 * Update .github/workflows/f_strings.yml Co-authored-by: Yasmin <63292494+ymzayek@users.noreply.github.com> * Update nilearn/_utils/data_gen.py Co-authored-by: bthirion <bertrand.thirion@inria.fr> * pre-commit hooks auto-update (#3764) Co-authored-by: Remi-Gau <Remi-Gau@users.noreply.github.com> * [DOC] update changelog and git blame ignore (#3755) * update git-blame-ignore * update changelog * fix * update ignore * fix regex escape * flake8 * use list and not set * simplify rev file * rm spaces * pragmatism wins * rm import * reset plotting files * [FIX] Change error string to match scikit-learn `InvalidParameterError` message (#3763) * Modify ValueError string * Warning based on sklearn version * relax regex for warning on sanitize reorder error (#3766) --------- Co-authored-by: Yasmin <63292494+ymzayek@users.noreply.github.com> Co-authored-by: bthirion <bertrand.thirion@inria.fr> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Remi-Gau <Remi-Gau@users.noreply.github.com>
- Loading branch information
1 parent
bb59d69
commit 88b4232
Showing
5 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: f strings | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
f_strings: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: "Install flynt" | ||
shell: bash {0} | ||
run: python -m pip install --upgrade pip flynt | ||
|
||
- name: "Run flynt" | ||
run: flynt . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters