mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
485 B
Plaintext
18 lines
485 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# yapf
|
|
|
|
> Python style guide checker.
|
|
> More information: <https://github.com/google/yapf#usage>.
|
|
|
|
- Display a diff of the changes that would be made, without making them (dry-run):
|
|
|
|
`yapf {{[-d|--diff]}} {{path/to/file}}`
|
|
|
|
- Recursively format all Python files in a directory, concurrently:
|
|
|
|
`yapf {{[-ri|--recursive --in-place]}} --style {{pep8}} {{[-p|--parallel]}} {{path/to/directory}}`
|