Skip to content

try reducing redundancy #17

try reducing redundancy

try reducing redundancy #17

Workflow file for this run

name: lint-code
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install isort ruff mypy
ruff-check:
needs: setup

Check failure on line 21 in .github/workflows/lint-code.yml

View workflow run for this annotation

GitHub Actions / lint-code

Invalid workflow file

The workflow is not valid. .github/workflows/lint-code.yml (Line: 21, Col: 5): Required property is missing: runs-on .github/workflows/lint-code.yml (Line: 27, Col: 5): Required property is missing: runs-on
steps:
- name: ruff --> Check for style violations
run: ruff check .
isort-check:
needs: setup
steps:
- name: isort --> Check for best-practice sorting of imports
run: isort .
ruff-format:
needs: setup
steps:
- name: ruff --> Check code formatting
run: ruff format --check .
mypy-check:
needs: setup
steps:
- name: mypy --> Static type checking
run: mypy --ignore-missing-imports --follow-imports=skip --exclude build .