weaver-ci-validate

Run Makefile targets for lint and test validation in Python projects.

30|6|Updated Mar 5, 2019
One-click install
npx skills add https://github.com/crim-ca/weaver --skill weaver-ci-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weaver-ci-validate
Source: https://github.com/crim-ca/weaver/tree/main/.agents/skills/weaver-ci-validate
Command: npx skills add https://github.com/crim-ca/weaver --skill weaver-ci-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of running code test and lint validations by utilizing Makefile targets, ensuring consistency with project CI behavior and environment setup.

Core Features & Use Cases

  • Makefile Target Utilization: Leverages make targets for deterministic tasks, maintaining alignment with project CI behavior.
  • Predefined Targets: Offers a range of predefined targets for linting, testing, and fixing issues, reducing manual steps.
  • Test Suite Execution: Facilitates execution of unit, functional, and integration tests, with options for focusing on specific areas.
  • Pytest Integration: Provides integration with pytest for marker-based test selection and flexible marker expressions.
  • Use Case: When working on a Python project with a Makefile, use this Skill to automate and streamline the validation process, saving time and reducing errors.

Quick Start

Run the make check-only command to validate all checks for your modified code.

Frequently Asked Questions about weaver-ci-validate

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

FAQPage Schema
How do I automate Python lint and test validations using Makefile targets?

You can automate Python lint and test validations by running predefined Makefile targets like `make check-only`, which executes checks aligned with your project's CI behavior and environment setup.

What is the best way to run specific test suites in a Python project with a Makefile?

The best way to run specific test suites is using Makefile targets integrated with pytest, which supports marker-based test selection and flexible marker expressions to focus on unit, functional, or integration tests.

Can I use Makefile targets to fix linting issues automatically in my Python project?

Yes, you can use predefined Makefile targets designed for fixing issues, which leverage deterministic tasks to automate the linting and correction process while maintaining consistency with project CI behavior.

Does this CI validation approach work without a pre-existing Makefile in my Python repository?

No, this approach requires a Python project with an existing Makefile-based CI setup, as it leverages predefined `make` targets to execute deterministic linting and testing tasks within the Weaver repository environment.

Why run validations through Makefile targets instead of executing pytest and linters directly?

Running validations through Makefile targets ensures consistency with project CI behavior by utilizing deterministic tasks, reducing manual steps and preventing environment setup discrepancies across different execution contexts.