Format Python (.py) files using ruff.
mp format [OPTIONS] [FILE_PATHS]...FILE_PATHS: One or more paths to files or directories to format.
| 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 |
mp format path/to/file.py path/to/dirmp format --changed-files