Skip to content

Linting seyLu/ghlabel #465

Linting seyLu/ghlabel

Linting seyLu/ghlabel #465

Workflow file for this run

name: Lint
run-name: Linting ${{ github.repository }}
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Perform lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Harden Runner
uses: step-security/harden-runner@6d3c2fe731c8f225990c8018cb71c337c0d9dfcd # v2.5.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.5.3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v4.7.0
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install and upgrade PIP
run: python -m pip install --upgrade pip
- name: Install Dependencies
run: >
pip install
ruff
mypy
- name: Ruff Linter
run: ruff check . --diff
- name: Ruff Formatter
run: ruff format .
- name: Mypy Type Checker
run: >
mypy .
--install-types
--non-interactive
--ignore-missing-imports