try reducing redundancy #17
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 | ||
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 GitHub Actions / lint-codeInvalid workflow file
|
||
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 . |