Linting code for kedhammar #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint-code | |
run-name: Linting code for ${{ github.actor }} | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.7" | |
- name: Install dependenciess | |
run: | | |
python -m pip install --upgrade pip | |
pip install isort ruff mypy | |
- name: ruff --> Check for style violations | |
run: ruff check . | |
- name: isort --> Check for best-practice sorting of imports | |
run: isort . | |
- name: ruff --> Check code formatting | |
run: ruff format --check . | |
- name: mypy --> Static type checking | |
run: mypy --ignore-missing-imports --follow-imports=skip --exclude build . |