Skip to content

try fixing yaml syntax error #23

try fixing yaml syntax error

try fixing yaml syntax error #23

Workflow file for this run

name: lint-code
on: [push]
jobs:
ruff-check:
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 ruff
- name: ruff --> Check for style violations
run: ruff check .
isort-check:
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
- name: isort --> Check for best-practice sorting of imports
run: |
isort --check . || echo "::error ::Please run 'isort .' on this repo." && exit 1

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

View workflow run for this annotation

GitHub Actions / .github/workflows/lint-code.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
ruff-format:
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 ruff
- name: ruff --> Check code formatting
run: ruff format --check .
mypy-check:
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 mypy
- name: mypy --> Static type checking
run: mypy --ignore-missing-imports --follow-imports=skip --exclude build .