Skip to content

Fix tests by updating package name from gz_transport_py to gz_transport #8

Fix tests by updating package name from gz_transport_py to gz_transport

Fix tests by updating package name from gz_transport_py to gz_transport #8

Workflow file for this run

name: Linting
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black flake8 isort mypy
pip install -e .
- name: Check formatting with black
run: |
black --check --diff gz_transport examples
continue-on-error: true
- name: Check import sorting with isort
run: |
isort --check-only --diff gz_transport examples
continue-on-error: true
- name: Lint with flake8
run: |
# Stop the build if there are Python syntax errors or undefined names
flake8 gz_transport examples --count --select=E9,F63,F7,F82 --show-source --statistics
# Exit-zero treats all errors as warnings
flake8 gz_transport examples --count --exit-zero --max-complexity=10 --max-line-length=100 --statistics
continue-on-error: true