local-dev

Run unit tests, linting, and type checking for the insights-rbac project.

11|77|Updated Feb 1, 2019
One-click install
npx skills add https://github.com/RedHatInsights/insights-rbac --skill local-dev-redhatinsights
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: local-dev
Source: https://github.com/RedHatInsights/insights-rbac/tree/main/.cursor/skills/local-dev
Command: npx skills add https://github.com/RedHatInsights/insights-rbac --skill local-dev-redhatinsights

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a centralized way to execute essential local development tasks like running tests, linting code, and performing type checking, ensuring code quality and consistency.

Core Features & Use Cases

  • Unit Testing: Run comprehensive test suites with options for coverage, speed, and profiling.
  • Linting & Formatting: Check code against style guides (flake8, black) and automatically format code.
  • Type Checking: Ensure code correctness using static type analysis (mypy).
  • Use Case: Before committing changes, run all tests and linters using this skill to catch potential issues early.

Quick Start

Use the local-dev skill to run all unit tests with coverage.

Frequently Asked Questions about local-dev

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

FAQPage Schema
How do I run unit tests and linting for the insights-rbac project locally?

Run unit tests and linting locally by executing this Skill, which centralizes quality checks for the insights-rbac project. It runs comprehensive test suites, checks formatting, and performs type checking.

Can I use Tox and Make for deterministic local development task execution?

Yes, Tox and Make are supported for deterministic local development task execution. They orchestrate the environment setup and run the defined unit tests, linting, and type checking processes consistently.

What's the best way to ensure Python code quality with flake8 and black before committing?

Ensure Python code quality by running this Skill before committing changes. It checks code against style guides using flake8 and black, automatically formats code, and catches potential issues early.

How do I perform static type checking with mypy in a local Python development environment?

Perform static type checking automatically using mypy within this Skill. It ensures Python code correctness and adherence to project standards during the local development lifecycle without manual configuration.

Does this local development workflow support running unit tests with coverage and profiling?

Yes, local development workflows support running unit tests with options for coverage, speed, and profiling. This ensures comprehensive test execution and detailed performance analysis for the project.