Skip to content

Bump @babel/traverse from 7.22.20 to 7.24.1 in /ui-display/frontend-app #110

Bump @babel/traverse from 7.22.20 to 7.24.1 in /ui-display/frontend-app

Bump @babel/traverse from 7.22.20 to 7.24.1 in /ui-display/frontend-app #110

name: Python formatter and linter
on: [push]
jobs:
python-linting-formatting:
runs-on: ubuntu-latest # Run the runner on a ubuntu image
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3 # Checkout the repo to the runner
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install and run formatter and linter
# 1. Configures python path and creates virtual environment
# 2. Installs linter and formatter
# 3. Lints and format checks each python component
run: |
export PYTHONPATH=$GITHUB_PATH
python -m venv venv
source ./venv/bin/activate
pip install --upgrade pip
pip install blue
pip install pylint
blue --diff --exclude '' ./db-handler
blue --diff --exclude '' ./figurines
blue --diff --exclude '' ./vision
pylint camera --exit-zero
pylint db-handler/app --exit-zero
pylint figurines --exit-zero
pylint vision --exit-zero