Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 717 Bytes

File metadata and controls

33 lines (23 loc) · 717 Bytes

mp format

Format Python (.py) files using ruff.

Usage

mp format [OPTIONS] [FILE_PATHS]...

Arguments

  • FILE_PATHS: One or more paths to files or directories to format.

Options

Option Description Type Default
--changed-files Check all changed files based on a diff with the origin/develop branch instead of providing FILE_PATHS. bool False
--quiet -q Log less on runtime. bool
--verbose -v Log more on runtime. bool

Examples

Format specific files

mp format path/to/file.py path/to/dir

Format changed files

mp format --changed-files