Skip to content

Merge pull request #1437 from wger-project/feature/react-nutrition #326

Merge pull request #1437 from wger-project/feature/react-nutrition

Merge pull request #1437 from wger-project/feature/react-nutrition #326

Workflow file for this run

name: Automatic formatting
on:
push:
branches:
- "master"
paths:
- '**.py'
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get dependencies
run: pip install yapf isort
- name: Format the code with yapf
run: yapf --recursive --in-place wger
- name: Sort the imports with isort
run: isort .
- name: Push a commit with the changed files
# Needed if no files were changed
continue-on-error: true
run: |
git config user.name Github-actions
git config user.email [email protected]
git add .
git commit -m "Automatic linting"
git push