-1

This is the error that I'm getting: (https://i.stack.imgur.com/xNs3G.png)

Here is my setup for github actions:

---
name: Checks

on: [push]

jobs:
  test-lint:
    name: Test and Lint
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Test
        run: docker-compose run --rm app sh -c "python manage.py wait_for_db && python manage.py test"
      - name: Lint
        run: docker-compose run --rm app sh -c "flake8"
Rich
  • 6,470
  • 15
  • 32
  • 53
joyal
  • 3
  • 1

1 Answers1

-1

The issue that you are facing is that you have some extra spaces in the file wait_for_db.py specifically in lines 5 and also you need to add an empty line at the and of this file 23. Also you have to make sure you only have one line the end of the test_commands.py.

Errors:

You can get a clear explanation of each flake8 rule in the following link: https://www.flake8rules.com/

allexiusw
  • 1,533
  • 2
  • 16
  • 23
  • 1 Error: Process completed with exit code 1. what about this? – joyal Aug 22 '23 at 15:53
  • Yes `EXIT_CODE=1` means error. https://github.com/PyCQA/flake8/blob/14c5edf3365b70b5c3c054453d66d0c73cee5c3a/src/flake8/main/application.py#L58 in bash `EXIT_CODE=0` means success normally. – allexiusw Aug 22 '23 at 17:51