Skip to content

Merge pull request #42 from lucashicks1/dependabot/npm_and_yarn/ui-di… #107

Merge pull request #42 from lucashicks1/dependabot/npm_and_yarn/ui-di…

Merge pull request #42 from lucashicks1/dependabot/npm_and_yarn/ui-di… #107

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