fix-linting-errors

star 358

Fix linting errors in a PR or Diff.

meta-pytorch By meta-pytorch schedule Updated 5/1/2026

name: fix-linting-errors description: Fix linting errors in a PR or Diff.

Fix linting errors

Description

This skill fixes linting errors in a PR or Diff.

Step 1: Check if ufmt is installed

Check if ufmt is installed by running ufmt.

If ufmt is not installed, install it by running uv pip install -r requirements-fmt.txt.

If in open source environment, find requirements-fmt.txt in the root of the repository.

If in Meta environment, find requirements-fmt.txt in fbsource/tools/lint/pyfmt/reqs/requirements-fmt.txt.

Step 2: Run ufmt linter

Run ufmt format <changed_file> to format all the changed file in the Diff or PR.

Install via CLI
npx skills add https://github.com/meta-pytorch/tritonbench --skill fix-linting-errors
Repository Details
star Stars 358
call_split Forks 82
navigation Branch main
article Path SKILL.md
More from Creator
meta-pytorch
meta-pytorch Explore all skills →