Use pyproject.toml and ruff #1677
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: 🕶️ Style | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
style-checks: | |
name: Run style checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo apt-get install -y python3-setuptools | |
- run: pip3 install -e .[style,docs] | |
- run: python3 -m ruff check . | |
name: Run ruff checks | |
- run: python3 -m flake8 . | |
name: Run flake8 checks | |
- run: python3 -m mypy . | |
name: Run mypy checks | |
- run: python3 -m isort --check . | |
name: Run isort checks | |
- run: | | |
cd docs | |
make html SPHINXOPTS="-W" | |
name: Test docs build |