diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 0000000..635992a --- /dev/null +++ b/.github/workflows/linters.yml @@ -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 . diff --git a/.github/workflows/ci.yml b/.github/workflows/tests.yml similarity index 83% rename from .github/workflows/ci.yml rename to .github/workflows/tests.yml index 069d7ad..40e77c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,8 @@ -name: CI - +name: Tests on: pull_request: branches: - main - jobs: unit-tests: @@ -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 diff --git a/README.rst b/README.rst index 131b752..f12206c 100644 --- a/README.rst +++ b/README.rst @@ -13,6 +13,8 @@ Requirements - Python >= 3.8 - requests +This project uses `Ruff `_ for linting and formatting. + Installation ------------