Skip to content

minor lint fixes

minor lint fixes #15

Workflow file for this run

name: Python CI (Build & Test)
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
lint:
name: Style Suggestions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ruff
run: pip install ruff
- name: Critical Logic Check
# Fails only on broken code (F=Logic errors, E9=Syntax)
run: ruff check . --select=F,E9
- name: Pythonic Advice
# Runs the full linter for your review, but never fails the build
continue-on-error: true
run: ruff check .
build-and-test:
name: Physics Smoke Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Master Simulation
env:
MPLBACKEND: Agg
PYTHONPATH: ${{ github.workspace }}
run: python examples/Chapter9/master_simulation.py