forked from luabud/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblack.output
More file actions
59 lines (56 loc) · 2.1 KB
/
black.output
File metadata and controls
59 lines (56 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- C:\GIT\issues\s p\vscode-python\src\test\pythonFiles\formatting\fileToformat.py 2020-05-11 18:56:39.835398 +0000
+++ C:\GIT\issues\s p\vscode-python\src\test\pythonFiles\formatting\fileToformat.py 2020-05-11 19:05:50.969508 +0000
@@ -1,23 +1,42 @@
+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)