Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Linters
on:
pull_request:
branches:
- main
jobs:
ruff-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
# Update output format to enable automatic inline annotations.
- name: Run Ruff
run: ruff check --output-format=github .
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: CI

name: Tests
on:
pull_request:
branches:
- main

jobs:
unit-tests:

Expand All @@ -27,7 +25,3 @@ jobs:
- name: Unit tests
run: |
python3 -m unittest -v
- name: PEP8
run: |
python3 -m pip install flake8
flake8 --max-line-length 120
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Requirements
- Python >= 3.8
- requests

This project uses `Ruff <https://docs.astral.sh/ruff/>`_ for linting and formatting.

Installation
------------

Expand Down
Loading