Skip to content

make sure to include the validation document in the distribution #348

make sure to include the validation document in the distribution

make sure to include the validation document in the distribution #348

Workflow file for this run

name: Format code
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Run Poetry image
uses: abatilo/actions-poetry@v2.3.0
with:
poetry-version: 1.7.1
- name: Install Dependencies
run: poetry install
- name: Autoformat code if the check fails
run: |
poetry run isort .
poetry run black .
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout $GITHUB_HEAD_REF
git commit -am "autoformat: isort & black" && git push || true