Replace flake8 and isort with ruff #115
Workflow file for this run
This file contains 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: tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python: | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
- pypy-3.10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install pymarkups and all optional dependencies | |
run: | | |
pip install --upgrade pip setuptools | |
pip install .[markdown,restructuredtext,textile,asciidoc,highlighting] | |
pip install codecov pymdown-extensions | |
- name: Run tests | |
run: coverage run -m unittest discover -s tests -v | |
- name: Run the doctest | |
run: python -m doctest README.rst -v | |
- name: Upload reports to Codecov | |
if: ${{ matrix.python == '3.13' }} | |
run: codecov | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install mypy and type stubs | |
run: python -m pip install mypy types-docutils types-PyYAML types-Markdown | |
- name: Run mypy | |
run: mypy --ignore-missing-imports --strict . | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install ruff | |
run: python -m pip install ruff | |
- name: Run ruff | |
run: ruff check --select F,E,W,I,UP --target-version py310 . |