From 872f5ff150ff5c236d232f332d5ef5bb4459802c Mon Sep 17 00:00:00 2001 From: retepsnave <57339232+retepsnave@users.noreply.github.com> Date: Wed, 4 Dec 2019 23:42:13 +0900 Subject: [PATCH 01/10] Add example.py --- example.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 example.py diff --git a/example.py b/example.py new file mode 100644 index 000000000..ec7eab77c --- /dev/null +++ b/example.py @@ -0,0 +1,21 @@ +import math, sys; + +def example1(): + ####This is a long comment. This should be wrapped to fit within 72 characters. + some_tuple=( 1,2, 3,'a' ); + some_variable={'long':'Long code lines should be wrapped within 79 characters.', + 'other':[math.pi, 100,200,300,9876543210,'This is a long string that goes on'], + 'more':{'inner':'This whole logical line should be wrapped.',some_tuple:[1, + 20,300,40000,500000000,60000000000000000]}} + return (some_tuple, some_variable) +def example2(): return {'has_key() is deprecated':True}.has_key({'f':2}.has_key('')); +class Example3( object ): + def __init__ ( self, bar ): + #Comments should have a space after the hash. + if bar : bar+=1; bar=bar* bar ; return bar + else: + some_string = """ + Indentation in multiline strings should not be touched. +Only actual code should be reindented. +""" + return (sys.path, some_string) From 872503b547d64f97f8e27090a9e16ac953d5ba30 Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Wed, 4 Dec 2019 14:45:06 +0000 Subject: [PATCH 02/10] [autopep8-command] fixes --- example.py | 54 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/example.py b/example.py index ec7eab77c..1d655b8cd 100644 --- a/example.py +++ b/example.py @@ -1,21 +1,45 @@ -import math, sys; +import math +import sys + def example1(): - ####This is a long comment. This should be wrapped to fit within 72 characters. - some_tuple=( 1,2, 3,'a' ); - some_variable={'long':'Long code lines should be wrapped within 79 characters.', - 'other':[math.pi, 100,200,300,9876543210,'This is a long string that goes on'], - 'more':{'inner':'This whole logical line should be wrapped.',some_tuple:[1, - 20,300,40000,500000000,60000000000000000]}} + # This is a long comment. This should be wrapped to fit within 72 + # characters. + some_tuple = (1, 2, 3, 'a') + some_variable = { + 'long': 'Long code lines should be wrapped within 79 characters.', + 'other': [ + math.pi, + 100, + 200, + 300, + 9876543210, + 'This is a long string that goes on'], + 'more': { + 'inner': 'This whole logical line should be wrapped.', + some_tuple: [ + 1, + 20, + 300, + 40000, + 500000000, + 60000000000000000]}} return (some_tuple, some_variable) -def example2(): return {'has_key() is deprecated':True}.has_key({'f':2}.has_key('')); -class Example3( object ): - def __init__ ( self, bar ): - #Comments should have a space after the hash. - if bar : bar+=1; bar=bar* bar ; return bar - else: - some_string = """ + + +def example2(): return ('' in {'f': 2}) in {'has_key() is deprecated': True} + + +class Example3(object): + def __init__(self, bar): + # Comments should have a space after the hash. + if bar: + bar += 1 + bar = bar * bar + return bar + else: + some_string = """ Indentation in multiline strings should not be touched. Only actual code should be reindented. """ - return (sys.path, some_string) + return (sys.path, some_string) From c84caebc58c2d1107fe05674ef9c57e8300eab92 Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Wed, 4 Dec 2019 14:45:57 +0000 Subject: [PATCH 03/10] [reset-demo-command] revert last commit --- example.py | 54 +++++++++++++++--------------------------------------- 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/example.py b/example.py index 1d655b8cd..ec7eab77c 100644 --- a/example.py +++ b/example.py @@ -1,45 +1,21 @@ -import math -import sys - +import math, sys; def example1(): - # This is a long comment. This should be wrapped to fit within 72 - # characters. - some_tuple = (1, 2, 3, 'a') - some_variable = { - 'long': 'Long code lines should be wrapped within 79 characters.', - 'other': [ - math.pi, - 100, - 200, - 300, - 9876543210, - 'This is a long string that goes on'], - 'more': { - 'inner': 'This whole logical line should be wrapped.', - some_tuple: [ - 1, - 20, - 300, - 40000, - 500000000, - 60000000000000000]}} + ####This is a long comment. This should be wrapped to fit within 72 characters. + some_tuple=( 1,2, 3,'a' ); + some_variable={'long':'Long code lines should be wrapped within 79 characters.', + 'other':[math.pi, 100,200,300,9876543210,'This is a long string that goes on'], + 'more':{'inner':'This whole logical line should be wrapped.',some_tuple:[1, + 20,300,40000,500000000,60000000000000000]}} return (some_tuple, some_variable) - - -def example2(): return ('' in {'f': 2}) in {'has_key() is deprecated': True} - - -class Example3(object): - def __init__(self, bar): - # Comments should have a space after the hash. - if bar: - bar += 1 - bar = bar * bar - return bar - else: - some_string = """ +def example2(): return {'has_key() is deprecated':True}.has_key({'f':2}.has_key('')); +class Example3( object ): + def __init__ ( self, bar ): + #Comments should have a space after the hash. + if bar : bar+=1; bar=bar* bar ; return bar + else: + some_string = """ Indentation in multiline strings should not be touched. Only actual code should be reindented. """ - return (sys.path, some_string) + return (sys.path, some_string) From bfbff303148a7df5a39239aecc7ba7ff01bfe84b Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Wed, 4 Dec 2019 14:46:56 +0000 Subject: [PATCH 04/10] [black-command] fixes --- example.py | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/example.py b/example.py index ec7eab77c..e7bca8b12 100644 --- a/example.py +++ b/example.py @@ -1,21 +1,41 @@ -import math, sys; +import math, sys + def example1(): ####This is a long comment. This should be wrapped to fit within 72 characters. - some_tuple=( 1,2, 3,'a' ); - some_variable={'long':'Long code lines should be wrapped within 79 characters.', - 'other':[math.pi, 100,200,300,9876543210,'This is a long string that goes on'], - 'more':{'inner':'This whole logical line should be wrapped.',some_tuple:[1, - 20,300,40000,500000000,60000000000000000]}} + some_tuple = (1, 2, 3, "a") + some_variable = { + "long": "Long code lines should be wrapped within 79 characters.", + "other": [ + math.pi, + 100, + 200, + 300, + 9876543210, + "This is a long string that goes on", + ], + "more": { + "inner": "This whole logical line should be wrapped.", + some_tuple: [1, 20, 300, 40000, 500000000, 60000000000000000], + }, + } return (some_tuple, some_variable) -def example2(): return {'has_key() is deprecated':True}.has_key({'f':2}.has_key('')); -class Example3( object ): - def __init__ ( self, bar ): - #Comments should have a space after the hash. - if bar : bar+=1; bar=bar* bar ; return bar - else: - some_string = """ + + +def example2(): + return {"has_key() is deprecated": True}.has_key({"f": 2}.has_key("")) + + +class Example3(object): + def __init__(self, bar): + # Comments should have a space after the hash. + if bar: + bar += 1 + bar = bar * bar + return bar + else: + some_string = """ Indentation in multiline strings should not be touched. Only actual code should be reindented. """ - return (sys.path, some_string) + return (sys.path, some_string) From 5429750fdc21c7fada1ed926d11994d3f71ceb0c Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Wed, 4 Dec 2019 14:47:50 +0000 Subject: [PATCH 05/10] [reset-demo-command] revert last commit --- example.py | 48 ++++++++++++++---------------------------------- 1 file changed, 14 insertions(+), 34 deletions(-) diff --git a/example.py b/example.py index e7bca8b12..ec7eab77c 100644 --- a/example.py +++ b/example.py @@ -1,41 +1,21 @@ -import math, sys - +import math, sys; def example1(): ####This is a long comment. This should be wrapped to fit within 72 characters. - some_tuple = (1, 2, 3, "a") - some_variable = { - "long": "Long code lines should be wrapped within 79 characters.", - "other": [ - math.pi, - 100, - 200, - 300, - 9876543210, - "This is a long string that goes on", - ], - "more": { - "inner": "This whole logical line should be wrapped.", - some_tuple: [1, 20, 300, 40000, 500000000, 60000000000000000], - }, - } + some_tuple=( 1,2, 3,'a' ); + some_variable={'long':'Long code lines should be wrapped within 79 characters.', + 'other':[math.pi, 100,200,300,9876543210,'This is a long string that goes on'], + 'more':{'inner':'This whole logical line should be wrapped.',some_tuple:[1, + 20,300,40000,500000000,60000000000000000]}} return (some_tuple, some_variable) - - -def example2(): - return {"has_key() is deprecated": True}.has_key({"f": 2}.has_key("")) - - -class Example3(object): - def __init__(self, bar): - # Comments should have a space after the hash. - if bar: - bar += 1 - bar = bar * bar - return bar - else: - some_string = """ +def example2(): return {'has_key() is deprecated':True}.has_key({'f':2}.has_key('')); +class Example3( object ): + def __init__ ( self, bar ): + #Comments should have a space after the hash. + if bar : bar+=1; bar=bar* bar ; return bar + else: + some_string = """ Indentation in multiline strings should not be touched. Only actual code should be reindented. """ - return (sys.path, some_string) + return (sys.path, some_string) From 2a958f4a49a1eef305a0c26d13f9d0239dadf7be Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Sat, 1 Feb 2020 23:51:45 +0000 Subject: [PATCH 06/10] [black-command] fixes --- example.py | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/example.py b/example.py index ec7eab77c..e7bca8b12 100644 --- a/example.py +++ b/example.py @@ -1,21 +1,41 @@ -import math, sys; +import math, sys + def example1(): ####This is a long comment. This should be wrapped to fit within 72 characters. - some_tuple=( 1,2, 3,'a' ); - some_variable={'long':'Long code lines should be wrapped within 79 characters.', - 'other':[math.pi, 100,200,300,9876543210,'This is a long string that goes on'], - 'more':{'inner':'This whole logical line should be wrapped.',some_tuple:[1, - 20,300,40000,500000000,60000000000000000]}} + some_tuple = (1, 2, 3, "a") + some_variable = { + "long": "Long code lines should be wrapped within 79 characters.", + "other": [ + math.pi, + 100, + 200, + 300, + 9876543210, + "This is a long string that goes on", + ], + "more": { + "inner": "This whole logical line should be wrapped.", + some_tuple: [1, 20, 300, 40000, 500000000, 60000000000000000], + }, + } return (some_tuple, some_variable) -def example2(): return {'has_key() is deprecated':True}.has_key({'f':2}.has_key('')); -class Example3( object ): - def __init__ ( self, bar ): - #Comments should have a space after the hash. - if bar : bar+=1; bar=bar* bar ; return bar - else: - some_string = """ + + +def example2(): + return {"has_key() is deprecated": True}.has_key({"f": 2}.has_key("")) + + +class Example3(object): + def __init__(self, bar): + # Comments should have a space after the hash. + if bar: + bar += 1 + bar = bar * bar + return bar + else: + some_string = """ Indentation in multiline strings should not be touched. Only actual code should be reindented. """ - return (sys.path, some_string) + return (sys.path, some_string) From f9fd820d270130caba96caf2ac28dfc037e994fa Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Sat, 1 Feb 2020 23:53:30 +0000 Subject: [PATCH 07/10] [autopep8-command] fixes --- example.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/example.py b/example.py index e7bca8b12..0f122ed37 100644 --- a/example.py +++ b/example.py @@ -1,8 +1,10 @@ -import math, sys +import math +import sys def example1(): - ####This is a long comment. This should be wrapped to fit within 72 characters. + # This is a long comment. This should be wrapped to fit within 72 + # characters. some_tuple = (1, 2, 3, "a") some_variable = { "long": "Long code lines should be wrapped within 79 characters.", @@ -23,7 +25,7 @@ def example1(): def example2(): - return {"has_key() is deprecated": True}.has_key({"f": 2}.has_key("")) + return ("" in {"f": 2}) in {"has_key() is deprecated": True} class Example3(object): From aab293038944dc478b9157b4ae442992ef6fcebb Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Sun, 2 Feb 2020 04:03:26 +0000 Subject: [PATCH 08/10] [reset-demo-command] revert last commit --- example.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/example.py b/example.py index 0f122ed37..e7bca8b12 100644 --- a/example.py +++ b/example.py @@ -1,10 +1,8 @@ -import math -import sys +import math, sys def example1(): - # This is a long comment. This should be wrapped to fit within 72 - # characters. + ####This is a long comment. This should be wrapped to fit within 72 characters. some_tuple = (1, 2, 3, "a") some_variable = { "long": "Long code lines should be wrapped within 79 characters.", @@ -25,7 +23,7 @@ def example1(): def example2(): - return ("" in {"f": 2}) in {"has_key() is deprecated": True} + return {"has_key() is deprecated": True}.has_key({"f": 2}.has_key("")) class Example3(object): From da47baf1bee0ecd0f73f2a8dac569a102d7d0f32 Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Tue, 25 Feb 2020 12:51:29 +0000 Subject: [PATCH 09/10] [reset-demo-command] revert last commit --- example.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/example.py b/example.py index e7bca8b12..0f122ed37 100644 --- a/example.py +++ b/example.py @@ -1,8 +1,10 @@ -import math, sys +import math +import sys def example1(): - ####This is a long comment. This should be wrapped to fit within 72 characters. + # This is a long comment. This should be wrapped to fit within 72 + # characters. some_tuple = (1, 2, 3, "a") some_variable = { "long": "Long code lines should be wrapped within 79 characters.", @@ -23,7 +25,7 @@ def example1(): def example2(): - return {"has_key() is deprecated": True}.has_key({"f": 2}.has_key("")) + return ("" in {"f": 2}) in {"has_key() is deprecated": True} class Example3(object): From 3943dda4f91db9b6a7e17ea9042354df22978856 Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Tue, 25 Feb 2020 12:52:42 +0000 Subject: [PATCH 10/10] [reset-demo-command] revert last commit --- example.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/example.py b/example.py index 0f122ed37..e7bca8b12 100644 --- a/example.py +++ b/example.py @@ -1,10 +1,8 @@ -import math -import sys +import math, sys def example1(): - # This is a long comment. This should be wrapped to fit within 72 - # characters. + ####This is a long comment. This should be wrapped to fit within 72 characters. some_tuple = (1, 2, 3, "a") some_variable = { "long": "Long code lines should be wrapped within 79 characters.", @@ -25,7 +23,7 @@ def example1(): def example2(): - return ("" in {"f": 2}) in {"has_key() is deprecated": True} + return {"has_key() is deprecated": True}.has_key({"f": 2}.has_key("")) class Example3(object):