chore: switch to ruff and fix all newly introduced issues #627
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 and Linters 🧪 | |
on: [ push, pull_request ] | |
jobs: | |
tests-and-linters: | |
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}" | |
runs-on: "${{ matrix.os }}" | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout stoix | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: Install python dependencies 🔧 | |
run: pip install .[dev] | |
- name: Run linters 🖌️ | |
run: pre-commit run --all-files --verbose |