Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yapf: add page and Dutch translation #5435

Merged
merged 12 commits into from
Mar 13, 2021
16 changes: 16 additions & 0 deletions pages.nl/common/yapf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yapf

> Python stijlgidschecker
Waples marked this conversation as resolved.
Show resolved Hide resolved
> Broncode: https://github.com/google/yapf
Waples marked this conversation as resolved.
Show resolved Hide resolved

- Print de geformateerde diff die zal optreden.
Waples marked this conversation as resolved.
Show resolved Hide resolved

`yapf --diff {{pad/naar/bestand}}`

- Print de geformateerde diff af en breng de wijzigingen aan in het bestand.
Waples marked this conversation as resolved.
Show resolved Hide resolved

`yapf --diff --in-place {{pad/naar/bestand}}`

- Formatteer alle Python-bestanden recursief in een map (bijvoorbeeld in pep8-stijl) in parallel.
Waples marked this conversation as resolved.
Show resolved Hide resolved

`yapf --recursive --in-place --style pep8 --parallel {{pad/naar/map}}`
16 changes: 16 additions & 0 deletions pages/common/yapf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yapf

> Python style guide checker
Waples marked this conversation as resolved.
Show resolved Hide resolved
> Source code: https://github.com/google/yapf
bl-ue marked this conversation as resolved.
Show resolved Hide resolved

- Print out the diff that will occur after formatting.
Waples marked this conversation as resolved.
Show resolved Hide resolved

`yapf --diff {{path/to/file}}`

- Print out the formatted diff and make the changes in the file.
Waples marked this conversation as resolved.
Show resolved Hide resolved

`yapf --diff --in-place {{path/to/file}}`

- Format all Python files in a directory recursivly (in pep8 style for example) in parallel.
Waples marked this conversation as resolved.
Show resolved Hide resolved

`yapf --recursive --in-place --style pep8 --parallel {{path/to/directory}}`