One-click install
npx skills add https://github.com/RedHatProductSecurity/prodsec-skills --skill modern-python-redhatproductsecurity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modern-python
Source: https://github.com/RedHatProductSecurity/prodsec-skills/tree/main/module/skills/modern-python
Command: npx skills add https://github.com/RedHatProductSecurity/prodsec-skills --skill modern-python-redhatproductsecurity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires uv, ruff, ty, pytest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies configuring and maintaining Python projects with contemporary tooling, reducing setup time and enhancing code quality.

Core Features & Use Cases

  • Project setup and configuration: Establishes a modern Python project structure using uv, ruff, ty, and pytest.
  • Tool integration: Guides users in integrating dependency management, linting, testing, and type checking seamlessly.
  • Use Case: A developer creating a new Python package can initialize the project, add dependencies, and run tests following these best practices efficiently.

Quick Start

Create a new Python project with uv, add essential dependencies, and run tests with simple commands as directed above.

Frequently Asked Questions about modern-python

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

FAQPage Schema
How do I set up a modern Python project with uv and ruff?

To set up a modern Python project, this Skill automates configuration using uv for dependency management, ruff for linting, ty for type checking, and pytest for testing. It establishes a standardized project structure and integrates these tools to enhance code quality and development efficiency.

What is the best way to migrate a legacy Python codebase to modern tooling?

Migrating a legacy Python codebase involves adopting modern tooling like uv, ruff, ty, and pytest. This Skill guides the integration of dependency management, linting, testing, and type checking seamlessly into existing workflows, reducing setup time and establishing best practices.

Do I need to install uv and pytest before configuring my Python project?

Yes, you need uv, ruff, ty, and pytest installed to implement dependency management, linting, testing, and type checking. These libraries are required dependencies for the Skill to automate Python project configuration and setup following modern best practices.

How does integrating ruff and ty improve Python development workflows?

Integrating ruff and ty improves Python development by automating linting and type checking, which catches errors early and enforces code quality standards. Combined with uv and pytest, it streamlines the entire workflow from dependency management to testing.

Can I use this automated Python project setup for existing codebases?

Yes, this automated Python project setup is suitable for migrating legacy codebases as well as initializing new projects. It guides the integration of dependency management, linting, testing, and type checking to establish modern best practices in any Python development workflow.

What limitations should I consider when automating Python project configuration?

When automating Python project configuration, consider that it strictly requires uv, ruff, ty, and pytest as dependencies. The setup focuses on these specific modern tools for dependency management, linting, type checking, and testing, meaning workflows relying on alternative tools may not integrate seamlessly.