code-style

Enforces Python code style and quality standards for Megatron Bridge via Ruff and pre-commit hooks.

2.8k|332|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/NVIDIA/skills --skill code-style-nvidia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-style
Source: https://github.com/NVIDIA/skills/tree/main/skills/Megatron-Bridge/code-style
Command: npx skills add https://github.com/NVIDIA/skills --skill code-style-nvidia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Establishes consistent Python code style and quality standards for Megatron Bridge, reducing review time and onboarding friction.

Core Features & Use Cases

  • Enforces naming conventions, type hints, formatting, and linting via Ruff and pre-commit hooks.
  • Documents code-review rules and best practices to ensure maintainable Megatron Bridge code.
  • Guides developers during creation and review to maintain high-quality, consistent implementations.

Quick Start

Configure your project to run Ruff and pre-commit checks according to this guide.

Frequently Asked Questions about code-style

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

FAQPage Schema
How do I enforce Python code style with Ruff and pre-commit hooks?

You can enforce Python code style by configuring Ruff and pre-commit hooks to check naming conventions, type hints, formatting, and linting rules automatically during local development and PR reviews.

What are the best coding conventions for Megatron Bridge Python development?

Consistent coding conventions for Megatron Bridge cover naming, type hints, linting, logging, and structured documentation standards, enforced via Ruff and pre-commit hooks to reduce review time and onboarding friction.

How do I set up pre-commit hooks to lint Python codebases automatically?

Set up pre-commit hooks by configuring Ruff checks in your project, which automatically validates formatting, naming conventions, and linting rules against your Python codebase before commits are finalized.

Does Ruff support type hint checking and naming convention enforcement?

Ruff supports enforcing type hints, naming conventions, formatting, and linting rules, allowing you to maintain consistent code quality standards across Python-based Megatron Bridge codebases.

Why should I use pre-commit hooks to standardize Python code review workflows?

Pre-commit hooks standardize Python code review workflows by automatically enforcing linting rules and style conventions before submission, reducing manual review effort and ensuring consistent implementations.

What code style rules do I need for Python Megatron Bridge development?

Python Megatron Bridge development requires rules for naming, type hints, formatting, linting, logging, and documentation standards, all structured via Ruff and pre-commit hooks to guide creation and review.