Skip to content

github action

github action #1

Workflow file for this run

name: Lint Python Code
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the Python version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Run flake8
run: |
flake8 ./backend --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 ./backend --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics