Rhesis python-linting

Runs Ruff linting and formatting on Python files. Use only before pushing changes (e.g. before git push or creating a PR).

install
source · Clone the upstream repo
git clone https://github.com/rhesis-ai/rhesis
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/rhesis-ai/rhesis "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.cursor/skills/python-linting" ~/.claude/skills/rhesis-ai-rhesis-python-linting && rm -rf "$T"
manifest: .cursor/skills/python-linting/SKILL.md
source content

Python Linting (Ruff)

Workflow

1. Check for linting issues

uvx ruff check <path/to/file.py>

2. Auto-format the code

uvx ruff format <path/to/file.py>

3. Check again to verify

uvx ruff check <path/to/file.py>

4. Fix remaining issues

Review any issues not fixed by the auto-formatter and fix them manually.

When to apply

  • Only before pushing (e.g. before
    git push
    or creating a pull request)