Skip to content

Adds first areas of main.py #5

Adds first areas of main.py

Adds first areas of main.py #5

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
black:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run linter
uses: psf/black@stable
with:
options: "--line-length 120"
src: "."
- name: Commit & push changes (main only)
if: github.event_name == 'push' && github.ref_name == 'main'
continue-on-error: true
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git add -A
git commit -m "[ci] Autoformat with black"
git push
- name: Fail job if changes were made (PR only)
if: github.event_name == 'pull_request'
run: git diff-index --quiet HEAD -- || (git diff && exit 1)