Skip to content

Commit

Permalink
Fix formatting, and black
Browse files Browse the repository at this point in the history
  • Loading branch information
BraunRudolf committed Jul 29, 2024
1 parent 43c43fe commit eeaadcd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/python_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry==1.8.3
poetry install --no-cache
if [ -f pyproject.toml]; then poetry install
elif [-f requirements.txt ]; then pip install -r requirements.txt;
if [ -f pyproject.toml ]; then poetry install
elif [ -f requirements.txt ]; then pip install -r requirements.txt;
fi
- name: Lint with flake8
run: |
Expand All @@ -44,13 +43,13 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Black check
run: |
black --check app/
enforce:
always:
black --check app/
enforce:
always:
- name: Test with pytest
run: |
# Test backend
coverage run --source=app -m pytest tests
coverage report -m
coverage run --source=app -m pytest tests
coverage report -m

0 comments on commit eeaadcd

Please sign in to comment.