-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0409148
commit 9f349f9
Showing
3 changed files
with
53 additions
and
54 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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
|
||
name: black-docstr | ||
|
||
on: pull_request | ||
jobs: | ||
black-docstr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
apt-get update && apt-get install git -y | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | ||
- name: Running black and docstr-coverage check | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install git python3-pip -y | ||
sudo pip3 install black==22.10.0 docstr-coverage | ||
FILES="$(git diff --name-only --diff-filter=A --diff-filter=M "origin/${{github.base_ref}}" '*.py')" | ||
black --check -l 120 -t py37 --exclude 'templates' $FILES | ||
for FILE in $FILES; do echo $FILE; docstr-coverage $FILE || true; done | ||
black-docstr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
apt-get update && apt-get install git -y | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | ||
- name: Running black and docstr-coverage check | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install git python3-pip -y | ||
sudo pip3 install black==22.10.0 docstr-coverage | ||
FILES="$(git diff --name-only --diff-filter=A --diff-filter=M "origin/${{github.base_ref}}" '*.py')" | ||
[ ! -z "$FILES" ] && black --check -l 120 -t py37 --exclude 'templates' $FILES | ||
for FILE in $FILES; do echo $FILE; docstr-coverage $FILE || true; done |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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