Use ruff for formatting instead of black #26
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: brew install enchant | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up poetry | |
run: | | |
python3 -m pip install --user pipx | |
python3 -m pipx ensurepath | |
pipx install poetry | |
- name: Install dependencies | |
run: poetry install | |
- name: Run mypy | |
run: poetry run mypy pyqt_spellcheck | |
- name: Lint with ruff | |
run: poetry run ruff check pyqt_spellcheck | |
- name: Run unittests | |
run: poetry run python -m unittest |