Skip to content

Keep GitHub Actions up to date with GitHub's Dependabot #175

Keep GitHub Actions up to date with GitHub's Dependabot

Keep GitHub Actions up to date with GitHub's Dependabot #175

Workflow file for this run

name: lint_python
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install --upgrade pip ruff setuptools wheel
- name: "Ruff: Show stopper (must-fix) issues"
run: ruff check --select=E9,F63,F7,F82,PLE,YTT --output-format=github
- name: "Ruff: All issues"
run: ruff check --exit-zero --select=ALL --statistics --target-version=py38
- name: "Ruff: All fixable (ruff --fix) issues"
run: ruff check --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102
--statistics --target-version=py38 . | grep "\[\*\]"
- run: ruff format || true
- run: pip install codespell mypy pytest safety
- run: codespell
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
- run: mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: safety check || true