use ruff for pre-commit and run it across all files #803
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: check_codebase | |
on: | |
push: | |
pull_request: | |
jobs: | |
check: | |
name: Check code base | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest ruff bump2version anvil-uplink | |
- name: Check codebase with ruff | |
run: | | |
python -m ruff check . | |
- name: Run test suite | |
run: | | |
python -m pytest | |
# - name: Check docs build | |
# run: | | |
# sphinx-build docs build | |
- name: Check version numbering | |
run: | | |
python -m bumpversion --dry-run patch |