Skip to content

Assorted cleanup and a few type hints #56

Assorted cleanup and a few type hints

Assorted cleanup and a few type hints #56

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: Run Tox tests
jobs:
tox_test:
name: Tox test
steps:
- uses: actions/checkout@v4
- name: Run Tox tests
id: test
uses: fedora-python/tox-github-action@main
with:
tox_env: ${{ matrix.tox_env }}
strategy:
fail-fast: false
matrix:
tox_env: [py39, py310, py311, py312, py313, pypy3, pep8]
# Use GitHub's Linux Docker host
runs-on: ubuntu-latest
lints:
name: Lints
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install ruff
run: |
python3 -m pip install --break-system-packages ruff
- name: Run ruff format
run: |
ruff --version
if ! ruff format --check --quiet varlink
then
echo "Please run 'ruff format' on the above files or apply the diffs below manually"
ruff format --check --quiet --diff varlink
fi
- name: Run ruff check
run: |
ruff --version
ruff check varlink
runs-on: ubuntu-latest