Skip to content

Never wrap output labels (#1994) #2211

Never wrap output labels (#1994)

Never wrap output labels (#1994) #2211

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Lint
# Controls when the workflow will run
on:
pull_request:
branches: ['*']
types:
- opened
- synchronize
- closed
paths:
- 'backend/**'
- '.github/workflows/**'
- '.pylintrc'
- 'requirements.txt'
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
backend-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Black
run: black --check backend/
- name: isort
run: isort backend/ --check --profile=black --src=backend/src
backend-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- run: pip install -r requirements.txt
- name: pylint
run: pylint backend/ --output-format=colorized --disable="C,R" --fail-under=10
backend-pyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Start backend to install dependencies
run: python ./backend/src/run.py --close-after-start --install-builtin-packages
- name: pyright
run: pyright backend/