From faa33d5396424463f5f13b0cbd1292d8fdafcb1b Mon Sep 17 00:00:00 2001 From: Florian Benscheidt Date: Sat, 13 Mar 2021 15:50:07 +0100 Subject: [PATCH 01/12] yapf: add initial pages for yapf in dutch and english --- pages.nl/common/yapf.md | 15 +++++++++++++++ pages/common/yapf.md | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pages.nl/common/yapf.md create mode 100644 pages/common/yapf.md diff --git a/pages.nl/common/yapf.md b/pages.nl/common/yapf.md new file mode 100644 index 00000000000000..2aae543deb32e7 --- /dev/null +++ b/pages.nl/common/yapf.md @@ -0,0 +1,15 @@ +# yapf + +> Python stijlgidschecker + +- Print de geformateerde diff die zal optreden. + +`yapf --diff {{pad/naar/bestand}}` + +- Print de geformateerde diff af en breng de wijzigingen aan in het bestand. + +`yapf --diff --in-place {{pad/naar/bestand}}` + +- Formatteer alle Python-bestanden recursief in een map (bijvoorbeeld in pep8-stijl) in parallel. + +`yapf --recursive --in-place --style pep8 --parallel {{pad/naar/map}}` diff --git a/pages/common/yapf.md b/pages/common/yapf.md new file mode 100644 index 00000000000000..175ddad1bc92ea --- /dev/null +++ b/pages/common/yapf.md @@ -0,0 +1,15 @@ +# yapf + +> Python style guide checker + +- Print out the diff that will occur after formatting. + +`yapf --diff {{path/to/file}}` + +- Print out the formatted diff and make the changes in the file. + +`yapf --diff --in-place {{path/to/file}}` + +- Format all Python files in a directory recursivly (in pep8 style for example) in parallel. + +`yapf --recursive --in-place --style pep8 --parallel {{path/to/directory}}` From 9cd280541049bc023c5e4121723a0b12d9db1b84 Mon Sep 17 00:00:00 2001 From: Florian Benscheidt Date: Sat, 13 Mar 2021 15:53:48 +0100 Subject: [PATCH 02/12] add sources --- pages.nl/common/yapf.md | 1 + pages/common/yapf.md | 1 + 2 files changed, 2 insertions(+) diff --git a/pages.nl/common/yapf.md b/pages.nl/common/yapf.md index 2aae543deb32e7..08b339f65c65f2 100644 --- a/pages.nl/common/yapf.md +++ b/pages.nl/common/yapf.md @@ -1,6 +1,7 @@ # yapf > Python stijlgidschecker +> Source code: https://github.com/google/yapf - Print de geformateerde diff die zal optreden. diff --git a/pages/common/yapf.md b/pages/common/yapf.md index 175ddad1bc92ea..300aec46ded5cc 100644 --- a/pages/common/yapf.md +++ b/pages/common/yapf.md @@ -1,6 +1,7 @@ # yapf > Python style guide checker +> Source code: https://github.com/google/yapf - Print out the diff that will occur after formatting. From 00c2221792afa9c04bfa056bff2c5e29824df1f8 Mon Sep 17 00:00:00 2001 From: Florian Benscheidt Date: Sat, 13 Mar 2021 15:54:43 +0100 Subject: [PATCH 03/12] fix dutch translation --- pages.nl/common/yapf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages.nl/common/yapf.md b/pages.nl/common/yapf.md index 08b339f65c65f2..5d044ac1e390ae 100644 --- a/pages.nl/common/yapf.md +++ b/pages.nl/common/yapf.md @@ -1,7 +1,7 @@ # yapf > Python stijlgidschecker -> Source code: https://github.com/google/yapf +> Broncode: https://github.com/google/yapf - Print de geformateerde diff die zal optreden. From 02278895f858f7c2748ada3dca65edc8d2f9710d Mon Sep 17 00:00:00 2001 From: Florian Benscheidt Date: Sat, 13 Mar 2021 15:57:36 +0100 Subject: [PATCH 04/12] fix styleguide --- pages.nl/common/yapf.md | 8 ++++---- pages/common/yapf.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages.nl/common/yapf.md b/pages.nl/common/yapf.md index 5d044ac1e390ae..156527a21c6c1c 100644 --- a/pages.nl/common/yapf.md +++ b/pages.nl/common/yapf.md @@ -1,16 +1,16 @@ # yapf -> Python stijlgidschecker +> Python stijlgidschecker. > Broncode: https://github.com/google/yapf -- Print de geformateerde diff die zal optreden. +- Print de geformateerde diff die zal optreden: `yapf --diff {{pad/naar/bestand}}` -- Print de geformateerde diff af en breng de wijzigingen aan in het bestand. +- Print de geformateerde diff af en breng de wijzigingen aan in het bestand: `yapf --diff --in-place {{pad/naar/bestand}}` -- Formatteer alle Python-bestanden recursief in een map (bijvoorbeeld in pep8-stijl) in parallel. +- Formatteer alle Python-bestanden recursief in een map (bijvoorbeeld in pep8-stijl) in parallel: `yapf --recursive --in-place --style pep8 --parallel {{pad/naar/map}}` diff --git a/pages/common/yapf.md b/pages/common/yapf.md index 300aec46ded5cc..c74913025e5cb6 100644 --- a/pages/common/yapf.md +++ b/pages/common/yapf.md @@ -1,16 +1,16 @@ # yapf -> Python style guide checker +> Python style guide checker. > Source code: https://github.com/google/yapf -- Print out the diff that will occur after formatting. +- Print out the diff that will occur after formatting: `yapf --diff {{path/to/file}}` -- Print out the formatted diff and make the changes in the file. +- Print out the formatted diff and make the changes in the file: `yapf --diff --in-place {{path/to/file}}` -- Format all Python files in a directory recursivly (in pep8 style for example) in parallel. +- Format all Python files in a directory recursivly (in pep8 style for example) in parallel: `yapf --recursive --in-place --style pep8 --parallel {{path/to/directory}}` From 9db818130e25a08392f7d6ec8146fafa29784415 Mon Sep 17 00:00:00 2001 From: Florian B Date: Sat, 13 Mar 2021 16:08:17 +0100 Subject: [PATCH 05/12] Update pages/common/yapf.md Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/common/yapf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yapf.md b/pages/common/yapf.md index c74913025e5cb6..c6bb9ec8f3b256 100644 --- a/pages/common/yapf.md +++ b/pages/common/yapf.md @@ -1,7 +1,7 @@ # yapf > Python style guide checker. -> Source code: https://github.com/google/yapf +> More information: . - Print out the diff that will occur after formatting: From 763ff01bba5cf848a24d263c5dfce80be5ccf6e7 Mon Sep 17 00:00:00 2001 From: Florian B Date: Sat, 13 Mar 2021 16:08:30 +0100 Subject: [PATCH 06/12] Update pages/common/yapf.md Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/common/yapf.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/yapf.md b/pages/common/yapf.md index c6bb9ec8f3b256..c20f690026cee9 100644 --- a/pages/common/yapf.md +++ b/pages/common/yapf.md @@ -11,6 +11,6 @@ `yapf --diff --in-place {{path/to/file}}` -- Format all Python files in a directory recursivly (in pep8 style for example) in parallel: +- Format all Python files in a directory recursively in parallel: -`yapf --recursive --in-place --style pep8 --parallel {{path/to/directory}}` +`yapf --recursive --in-place --style {{pep8}} --parallel {{path/to/directory}}` From fb30265ab7a1a4fd97bf79d46e7af8e637d53d0b Mon Sep 17 00:00:00 2001 From: Florian B Date: Sat, 13 Mar 2021 16:08:39 +0100 Subject: [PATCH 07/12] Update pages/common/yapf.md Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/common/yapf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yapf.md b/pages/common/yapf.md index c20f690026cee9..9ba23c1a1e2704 100644 --- a/pages/common/yapf.md +++ b/pages/common/yapf.md @@ -7,7 +7,7 @@ `yapf --diff {{path/to/file}}` -- Print out the formatted diff and make the changes in the file: +- Format the file in-place and and display diff: `yapf --diff --in-place {{path/to/file}}` From 645ad2341bd745bea4c6ba293d01a957582efbf5 Mon Sep 17 00:00:00 2001 From: Florian B Date: Sat, 13 Mar 2021 16:08:48 +0100 Subject: [PATCH 08/12] Update pages.nl/common/yapf.md Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages.nl/common/yapf.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages.nl/common/yapf.md b/pages.nl/common/yapf.md index 156527a21c6c1c..7ef6ebab997648 100644 --- a/pages.nl/common/yapf.md +++ b/pages.nl/common/yapf.md @@ -11,6 +11,6 @@ `yapf --diff --in-place {{pad/naar/bestand}}` -- Formatteer alle Python-bestanden recursief in een map (bijvoorbeeld in pep8-stijl) in parallel: +- Formatteer alle Python-bestanden recursief in een map in parallel: -`yapf --recursive --in-place --style pep8 --parallel {{pad/naar/map}}` +`yapf --recursive --in-place --style {{pep8}} --parallel {{pad/naar/map}}` From f39b6a70683a3991212ffdb7bc0ee855e24130dc Mon Sep 17 00:00:00 2001 From: Florian B Date: Sat, 13 Mar 2021 16:08:55 +0100 Subject: [PATCH 09/12] Update pages.nl/common/yapf.md Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages.nl/common/yapf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages.nl/common/yapf.md b/pages.nl/common/yapf.md index 7ef6ebab997648..986d8acfd02355 100644 --- a/pages.nl/common/yapf.md +++ b/pages.nl/common/yapf.md @@ -1,7 +1,7 @@ # yapf > Python stijlgidschecker. -> Broncode: https://github.com/google/yapf +> Meer informatie: . - Print de geformateerde diff die zal optreden: From 069955fd7a4cec2243e18e2dafa0630a55207669 Mon Sep 17 00:00:00 2001 From: Florian Benscheidt Date: Sat, 13 Mar 2021 16:20:37 +0100 Subject: [PATCH 10/12] fix dutch translation --- pages.nl/common/yapf.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages.nl/common/yapf.md b/pages.nl/common/yapf.md index 986d8acfd02355..088450697ab7f6 100644 --- a/pages.nl/common/yapf.md +++ b/pages.nl/common/yapf.md @@ -3,11 +3,11 @@ > Python stijlgidschecker. > Meer informatie: . -- Print de geformateerde diff die zal optreden: +- Print de geformateerde diff die zal optreden uit: `yapf --diff {{pad/naar/bestand}}` -- Print de geformateerde diff af en breng de wijzigingen aan in het bestand: +- Print de geformateerde diff uit en breng de wijzigingen aan in het bestand: `yapf --diff --in-place {{pad/naar/bestand}}` From a85ede3f07dcf66968b863f8ac1fa87cdce5a130 Mon Sep 17 00:00:00 2001 From: Florian B Date: Sat, 13 Mar 2021 16:22:58 +0100 Subject: [PATCH 11/12] Apply suggestions from code review Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/common/yapf.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/yapf.md b/pages/common/yapf.md index 9ba23c1a1e2704..246cb8fb17cdb4 100644 --- a/pages/common/yapf.md +++ b/pages/common/yapf.md @@ -3,14 +3,14 @@ > Python style guide checker. > More information: . -- Print out the diff that will occur after formatting: +- Display the diff of the changes that would be made, without making them (dry-run): `yapf --diff {{path/to/file}}` -- Format the file in-place and and display diff: +- Format the file in-place and display a diff of the changes: `yapf --diff --in-place {{path/to/file}}` -- Format all Python files in a directory recursively in parallel: +- Recursively format all Python files in a directory, concurrently: `yapf --recursive --in-place --style {{pep8}} --parallel {{path/to/directory}}` From ba1de045ccea75c10010d8085a01191ba7d56e6d Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 13 Mar 2021 21:27:02 +0000 Subject: [PATCH 12/12] yapf: fix grammar --- pages/common/yapf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yapf.md b/pages/common/yapf.md index 246cb8fb17cdb4..75e384ca0d2db3 100644 --- a/pages/common/yapf.md +++ b/pages/common/yapf.md @@ -3,7 +3,7 @@ > Python style guide checker. > More information: . -- Display the diff of the changes that would be made, without making them (dry-run): +- Display a diff of the changes that would be made, without making them (dry-run): `yapf --diff {{path/to/file}}`