fix bugs and fix ruff and workflows #4
Workflow file for this run
This file contains hidden or 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: Python CI | |
on: [pull_request, push] | |
jobs: | |
lint_python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: "pip" | |
cache-dependency-path: "pyproject.toml" | |
- name: Install check dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install bandit ruff mypy safety codespell | |
- name: Run Ruff (linting) | |
run: ruff check . --config pyproject.toml | |
- name: Run Ruff (formatting check) | |
run: ruff format --check . --config pyproject.toml || true | |
- name: Run Bandit | |
run: bandit --recursive --skip B101 . || true | |
- name: Run Codespell | |
run: codespell --config pyproject.toml || true | |
- name: Run Safety | |
run: safety check || true | |
- name: Setup Mypy cache | |
run: mkdir -p .mypy_cache | |
- name: Install type stubs | |
run: mypy --config-file pyproject.toml --install-types --non-interactive | |
- name: Run Mypy | |
run: mypy --config-file pyproject.toml |