Skip to content

correct average session calculation #637

correct average session calculation

correct average session calculation #637

Workflow file for this run

name: "Autoformat using Black"
on: [workflow_dispatch, push]
jobs:
autoformat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pip modules
run: pip install black isort
- name: copy config for isort sanity
run: cp example_config.py config.py
- name: Run isort
run: isort .
- name: Run Black
run: black .
- name: Commit and push changes
run: |
git config user.name github-actions
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "auto: format python code"
git push