Skip to content

Add linting and formatting to linkml-runtime #1

Add linting and formatting to linkml-runtime

Add linting and formatting to linkml-runtime #1

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
poetry:
name: Poetry Lockfile Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: poetry
- name: Check pyproject.toml and poetry.lock
run: poetry check
lint:
name: Lint Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Install tox
run: python -m pip install tox
- name: Run code quality checks
run: tox -e lint