Skip to content

Commit

Permalink
fix (gh actions): Moved away from the black tool to action
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas committed Mar 14, 2022
1 parent 48a9a19 commit fd55eac
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/canary_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,3 @@ jobs:
run: python3 -m unittest discover -v src
- name: Pylint for unused imports # TODO maybe use pylint for another purpose?
run: pylint --disable=all --enable=unused-argument --enable=global-statement --enable=global-variable-not-assigned --enable=used-before-assignment --enable=function-redefined --enable=abstract-class-instantiated --enable=invalid-unary-operand-type --enable=no-member --enable=undefined-variable --enable=undefined-loop-variable $(git ls-files '*.py')
- name: Black code formatting
run: black --diff --check $(git ls-files '*.py')
- name: If needed, commit black changes to the pull request
if: failure()
run: |
black .
git config --global user.name 'autoblack'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout $GITHUB_HEAD_REF
git commit -am "fixup: Format Python code with Black"
git push
# - uses: snyk/actions/setup@master
# - name: Test dependencies with Snyk
# run: snyk test
# env:
# SNYK_TOKEN: ${{secrets.SNYK_TOKEN}}
# - name: Monitor dependencies for security issues with Snyk
# run: snyk monitor
# env:
# SNYK_TOKEN: ${{secrets.SNYK_TOKEN}}

0 comments on commit fd55eac

Please sign in to comment.