OpenParable
Skip to content
← Back to skills

Python Linting

Testing & Quality
python-linting

Python Linting is an Agent Skill for testing & quality published in the rhesis-ai/rhesis repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rhesis-ai/rhesis/blob/HEAD/.cursor/skills/python-linting/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/python-linting, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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)