Add linting rule

This commit is contained in:
Ben Lopatin
2023-08-31 17:56:09 -04:00
parent c850e34112
commit fcdd6ab8dd
+20
View File
@@ -3,6 +3,26 @@ name: Tests
on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with Ruff
run: ruff .
test:
name: Test on Python ${{ matrix.python-version }}