Skip to content

Migrate to ruff

Migrate to ruff #13

Workflow file for this run

name: Python sanity check and tests
on: [push]
jobs:
python:
name: Run tests and check python code
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- name: Install dependency
run: pip install -r requirements.txt
- name: Install development environment
run: pip install pytest coverage pycodestyle pyflakes mypy
- name: Run tests and show coverage report
run: |
coverage run -m pytest --verbose
coverage report *.py
- name: Lint check
uses: chartboost/ruff-action@v1
- name: Format check
uses: chartboost/ruff-action@v1
with:
args: 'format --check'
# type annotation checks
- name: Type checks
run: mypy .
# if you pretend to make a typed version of your program, you should uncomment these lines:
# - name: Strict type checks
# run: mypy . --strict
markdown:
name: Lint markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint markdown files
uses: actionshub/markdownlint@main