File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1062,12 +1062,14 @@ def whitespace_before_comment(logical_line, tokens):
1062
1062
Inline comments should be separated by at least two spaces from the
1063
1063
statement. They should start with a # and a single space.
1064
1064
1065
- Each line of a block comment starts with a # and a single space
1066
- (unless it is indented text inside the comment) .
1065
+ Each line of a block comment starts with a # and one or multiple
1066
+ spaces as there can be indented text inside the comment.
1067
1067
1068
1068
Okay: x = x + 1 # Increment x
1069
1069
Okay: x = x + 1 # Increment x
1070
- Okay: # Block comment
1070
+ Okay: # Block comments:
1071
+ Okay: # - Block comment list
1072
+ Okay: # - Block comment list
1071
1073
E261: x = x + 1 # Increment x
1072
1074
E262: x = x + 1 #Increment x
1073
1075
E262: x = x + 1 # Increment x
You can’t perform that action at this time.
0 commit comments