Skip to content

Instantly share code, notes, and snippets.

@praveenc
Created July 27, 2025 17:59
Show Gist options
  • Save praveenc/44f2c1eb22593ac725d909d697013d0f to your computer and use it in GitHub Desktop.
Save praveenc/44f2c1eb22593ac725d909d697013d0f to your computer and use it in GitHub Desktop.
ruff-lint - Claude code custom command
allowed-tools description
Bash(ruff check:*), Bash(ruff format:*), Read(~/.config/ruff/ruff.toml)
Lint and format codebase using Ruff

Lint codebase using Ruff

Your goal is to lint and format the codebase using Ruff.

Do the following:

  1. Run ruff format to format the codebase.
  2. Run ruff check --fix to lint the codebase and fix any fixable issues.
  3. Take a look at the output and note any issues that ruff couldn't fix.
  4. refer to ~/.config/ruff/ruff.toml and reading the violations.
  5. Try to fix issues that doesn't change the core logic of the code.Ignore fixes that require restructing the code in a major way.
  6. Report all unfixed issues and exit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment