mcore-linting-and-formatting

Automate linting and autoformatting of Megatron-LM Python code with Ruff, Black, Isort, Pylint, and MyPy.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/sayalinvidia/sayali-skills-test --skill mcore-linting-and-formatting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcore-linting-and-formatting
Source: https://github.com/sayalinvidia/sayali-skills-test/tree/main/skills/mcore-linting-and-formatting
Command: npx skills add https://github.com/sayalinvidia/sayali-skills-test --skill mcore-linting-and-formatting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Megatron-LM codebases often drift from style guidelines, causing noisy PRs and inconsistent quality. This Skill provides automated linting and formatting to enforce consistent style and reduce review time.

Core Features & Use Cases

  • Run automated linting with Ruff, Pylint, and MyPy, and formatting with Black and Isort to maintain code quality.
  • Integrate into PR pipelines or local development to catch issues early and accelerate reviews.
  • Use Case: A developer runs the linting workflow before submitting a PR to Megatron-LM to ensure adherence to project standards.

Quick Start

Run the linting workflow to autoformat Megatron-LM code and enforce style rules before submitting a PR.

Frequently Asked Questions about mcore-linting-and-formatting

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

FAQPage Schema
How do I automate Python code linting and formatting for Megatron-LM before a PR?

Automate Python code linting and formatting for Megatron-LM by running a workflow that applies Ruff, Black, Isort, Pylint, and MyPy to enforce consistent style and catch issues locally or in CI before submission.

What linters and formatters are required to enforce Megatron-LM code style?

To enforce Megatron-LM code style, the required linting and formatting tools are Ruff, Black, Isort, Pylint, and MyPy, which run during the autoformat workflow to maintain code quality.

Can I integrate Ruff and MyPy linting into my CI pipeline for Megatron-LM?

Yes, you can integrate Ruff, MyPy, and other linting tools into CI pipelines for Megatron-LM to catch style issues early and accelerate code reviews before PRs are merged.

Why does my Megatron-LM pull request fail code style checks?

Megatron-LM pull requests fail code style checks when Python code drifts from project style guidelines. Running automated linting and formatting with Ruff, Black, and Pylint resolves inconsistencies.

What is the best way to run autoformatting on Megatron-LM Python code?

The best way to run autoformatting on Megatron-LM Python code is using an automated workflow that applies Black and Isort for formatting alongside Ruff, Pylint, and MyPy for linting.