-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from MannLabs/development
release 1.5.0
- Loading branch information
Showing
35 changed files
with
3,267 additions
and
1,718 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,35 @@ | ||
name: Black linter | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.py' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Black | ||
run: pip install 'black[jupyter]==23.11.0' | ||
|
||
- name: Run Black | ||
id: black_check | ||
run: | | ||
black --check --verbose . || echo "CHANGES_NEEDED=true" >> $GITHUB_ENV | ||
continue-on-error: true | ||
|
||
- name: Apply Black reformatting | ||
if: env.CHANGES_NEEDED=='true' | ||
run: | | ||
black . | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git add -A | ||
git diff --quiet && git diff --staged --quiet || (git commit -m "Apply Black formatting" && git push) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Oops, something went wrong.