A GitHub action that checks Python code using black and ruff.
on: [push, pull_request]
name: Python linting
permissions:
contents: read
jobs:
PythonLinting:
name: Python linting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Python linting
uses: konstruktoid/[email protected]
#!/bin/sh
set -euf
export PATH="${PATH}:/root/.local/bin"
black --check --diff --no-color --quiet .
ruff check --select ALL .