-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New option: extra indent on closing bracket (#13)
- Loading branch information
Showing
12 changed files
with
660 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
tests/data/configurable_cases/closing_bracket_indent/extra_indent.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# Line length limit: 30 chars, | ||
# which is right here: | | ||
|
||
|
||
def function(arg1: int, | ||
arg2: float, | ||
arg3_with_very_long_name: list): | ||
print('Hello world') | ||
|
||
|
||
def func2(arg1: int, | ||
arg2: float, | ||
arg3_with_very_long_name: list) -> None: | ||
print('Hello world') | ||
|
||
|
||
result = func2(12345, 3.1415926, [1, 2, 3]) | ||
|
||
result = [123, 456, 789, -123, -456] | ||
|
||
something = {'a': 1, 'b': 2, 'c': 3} | ||
|
||
some_tuple = (1, 2, 3, 4, 5, 6, 7, 8) | ||
|
||
|
||
class A: | ||
def __init__(self, a, b, c, d): | ||
print('hello world') | ||
|
||
|
||
class B: | ||
def __init__(self, a, b, c, d,): | ||
print('hello world') | ||
|
||
|
||
# Line length limit: 30 chars, | ||
# which is right here: | | ||
|
||
|
||
# output | ||
|
||
|
||
# Line length limit: 30 chars, | ||
# which is right here: | | ||
|
||
|
||
def function( | ||
arg1: int, | ||
arg2: float, | ||
arg3_with_very_long_name: list, | ||
): | ||
print('Hello world') | ||
|
||
|
||
def func2( | ||
arg1: int, | ||
arg2: float, | ||
arg3_with_very_long_name: list, | ||
) -> None: | ||
print('Hello world') | ||
|
||
|
||
result = func2( | ||
12345, | ||
3.1415926, | ||
[1, 2, 3], | ||
) | ||
|
||
result = [ | ||
123, | ||
456, | ||
789, | ||
-123, | ||
-456, | ||
] | ||
|
||
something = { | ||
'a': 1, | ||
'b': 2, | ||
'c': 3, | ||
} | ||
|
||
some_tuple = ( | ||
1, | ||
2, | ||
3, | ||
4, | ||
5, | ||
6, | ||
7, | ||
8, | ||
) | ||
|
||
|
||
class A: | ||
def __init__( | ||
self, a, b, c, d | ||
): | ||
print('hello world') | ||
|
||
|
||
class B: | ||
def __init__( | ||
self, | ||
a, | ||
b, | ||
c, | ||
d, | ||
): | ||
print('hello world') | ||
|
||
|
||
# Line length limit: 30 chars, | ||
# which is right here: | |
Oops, something went wrong.