clean-up

Format code with Ruff, run pytest tests in parallel, and validate quality gates.

7|4|Updated Feb 12, 2024
One-click install
npx skills add https://github.com/ll7/robot_sf_ll7 --skill clean-up
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-up
Source: https://github.com/ll7/robot_sf_ll7/tree/main/.codex/skills/clean-up
Command: npx skills add https://github.com/ll7/robot_sf_ll7 --skill clean-up

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of cleaning up your code, ensuring it adheres to project standards and passes automated checks before sharing.

Core Features & Use Cases

  • Code Formatting & Linting: Automatically formats code and fixes linting issues using Ruff.
  • Parallel Test Execution: Runs tests efficiently in parallel to quickly identify failures.
  • Quality Gates: Validates code quality through coverage checks and documentation adherence.
  • Use Case: Before committing your changes, run this Skill to ensure your code is clean, well-formatted, and all tests pass, preventing integration issues.

Quick Start

Run the clean-up skill to format code and execute all tests in parallel.

Frequently Asked Questions about clean-up

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code formatting and run tests before a git commit?

To automate code formatting and run tests before a git commit, use this Skill to apply Ruff linting fixes and execute pytest in parallel. It validates your current Git branch against project standards to prevent integration issues.

What is the best way to check code coverage and documentation in a Git branch?

The best way to check code coverage and documentation in a Git branch is using a diff-based quality gate. This Skill performs those automated checks after formatting your code with Ruff to ensure adherence to project standards.

How does parallel test execution with pytest work during code cleanup?

Parallel test execution with pytest during code cleanup works by running multiple tests simultaneously after Ruff formats the code. This approach quickly identifies failures and validates the Git branch efficiently before sharing.

Can I use Ruff to automatically fix linting issues across my entire project?

You can use Ruff to automatically fix linting issues across your project, as this Skill applies Ruff formatting and fixing to the current Git branch. It ensures the code adheres to predefined development workflows before validation.

Why does my code fail quality gate checks after formatting with Ruff?

Your code may fail quality gate checks after formatting with Ruff if diff-based validation detects insufficient test coverage or missing documentation. This Skill enforces these checks to ensure your Git branch meets project quality standards.