Skip to content

ci: add a job to check for type hinting and annotation #81

ci: add a job to check for type hinting and annotation

ci: add a job to check for type hinting and annotation #81

Workflow file for this run

name: lint
on: [push, pull_request]
jobs:
ci:
name: Run black and pylint tools
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.12
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install Python dependencies
run: pip install black flake8
- name: Run linters
uses: wearerequired/lint-action@v2
with:
auto_fix: false
black: true
flake8: false
- name: Python type hinting and annotations checks with Mypy
run: |
uv run mypy *.py
- name: Python code analysis with Pylint
run: |
uv run pylint --output-format=text ./**/*.py