Skip to content

fix tag

fix tag #63

Workflow file for this run

name: Linting and MyPy (Pelican)
on:
push:
paths:
- '**.py'
- '**/linting.yml'
- '**/pylintrc'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip list
cd pelican
pip install -r requirements.txt --no-deps # Explicit dependency-only installation
pip install mypy types-PyYAML types-requests types-beautifulsoup4 types-markdown pylint
pip list
- name: Type testing with mypy
run: |
cd pelican
mypy --cache-dir /tmp/ --install-types --non-interactive
mypy --cache-dir /tmp/ --ignore-missing-imports .
- name: Code linting with pylint
run: |
cd pelican
pylint **/*.py