-c, --check
return error code if changes are needed
-cd, --check-diff
return error code if changes are needed, also display file diffs
--importsIMPORTS
by default, only unused standard library imports are removed; specify a comma- separated list of
additional modules/packages
--remove-all-unused-imports
remove all unused imports (not just those from the standard library)
-r, --recursive
drill down directories recursively
-jn, --jobsn
number of parallel jobs; match CPU count if value is 0 (default: 0)
--excludeglobs
exclude file/directory names that match these comma-separated globs
--expand-star-imports
expand wildcard star imports with undefined names; this only triggers if there is only one star
import in the file; this is skipped if there are any uses of `__all__` or `del` in the file
--ignore-init-module-imports
exclude __init__.py when removing unused imports
--remove-duplicate-keys
remove all duplicate keys in objects
--remove-unused-variables
remove unused variables
--remove-rhs-for-unused-variables
remove RHS of statements when removing unused variables (unsafe)
--ignore-pass-statements
ignore all pass statements
--ignore-pass-after-docstring
ignore pass statements after a newline ending on '"""'
--version
show program's version number and exit
--quiet
Suppress output if there are no issues
-v, --verbose
print more verbose logs (you can repeat `-v` to make it more verbose)
--stdin-display-nameSTDIN_DISPLAY_NAME
the name used when processing input from stdin
--configCONFIG_FILE
Explicitly set the config file instead of auto determining based on file location
-i, --in-place
make changes to files instead of printing diffs
-s, --stdout
print changed text to stdout. defaults to true when formatting stdin, or to false otherwise