
Description
Linting and formatting for Megatron-LM is an agent skill that explains how to check and fix code style in the Megatron-LM repository before a pull request is opened. Its core step is one script, tools/autoformat.sh, which the skill says to run before opening a PR. The script can run in check mode, where it applies no changes and only reports problems, or in fix mode, where it rewrites files. Both modes compare against a base branch, which defaults to main, and a flag controls whether the docs are skipped. The tools the script calls are black, isort, pylint, ruff and mypy, so the skill also covers what each of them checks. Use it when you need to know how to run the Megatron-LM formatter, which mode to pick for a given moment, or why the linter flagged a change. It is part of the nvidia/skills repository and is listed on skills.sh as free.…
Highlights
- One script, tools/autoformat.sh, for check and fix
- Check mode reports problems without changing files
- Runs black, isort, pylint, ruff and mypy
- Compares changes against a base branch
Ratings & Reviews
No ratings yet
Be the first to rate mcore-linting-and-formatting.
People also visit

nemo-mbridge-recipe-recommender
Recommend and customize Megatron Bridge library and benchmark recipes
mcore-linting-and-formatting FAQ
How do I run the formatter?
From the repository root, run tools/autoformat.sh with BASE_REF set to main and CHECK_ONLY set to true to check without changing files. Set CHECK_ONLY to false to apply fixes.
Which tools does it run?
black, isort, pylint, ruff and mypy.
How do I install it?
Run npx skills add https://github.com/nvidia/skills --skill mcore-linting-and-formatting in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best mcore-linting-and-formatting alternatives?
Popular alternatives to mcore-linting-and-formatting include nemo-mbridge-recipe-recommender, ai-engineer and create-llms. See all mcore-linting-and-formatting alternatives














