2025-03-14 21:59:59 -06:00
|
|
|
# yapf
|
|
|
|
|
|
|
|
|
|
> Python style guide checker.
|
|
|
|
|
> More information: <https://github.com/google/yapf>.
|
|
|
|
|
|
|
|
|
|
- Display a diff of the changes that would be made, without making them (dry-run):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`yapf {{[-d|--diff]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Recursively format all Python files in a directory, concurrently:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`yapf {{[-ri|--recursive --in-place]}} --style {{pep8}} {{[-p|--parallel]}} {{path/to/directory}}`
|