Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix black actions #634

Merged
merged 1 commit into from
Dec 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions .github/workflows/black-docstr.yml
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