Skip to content

Commit

Permalink
modified 3 files
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Lee committed Sep 6, 2024
1 parent fc348e3 commit cceb9ae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 33 deletions.
26 changes: 11 additions & 15 deletions example-black.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
# Arguments on first line forbidden when not using vertical alignment.
foo = long_function_name(
var_one, var_two, var_three, var_four, var_five, var_six, var_seven
)

# Further indentation required as indentation is not distinguishable.
def long_function_name(var_one, var_two, var_three, var_four):
print(var_one)


result = some_function_that_takes_arguments("a", "b", "c", "d", "e", "f",)
def some_function_that_takes_arguments(one, two, three, four, five, six):
return one


# Arguments on first line forbidden when not using vertical alignment.
foo = long_function_name(
"var_one", "var_two", "var_three", "var_four", "var_five", "var_six", "var_seven"
)

result = some_function_that_takes_arguments("a", "b", "c", "d", "e", "f")

my_list = [
1,
2,
3,
4,
5,
6,
]
my_list = [1, 2, 3, 4, 5, 6]

x = {"a": 37, "b": 42, "c": 927}
30 changes: 14 additions & 16 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# Arguments on first line forbidden when not using vertical alignment.
foo = long_function_name(var_one, var_two, var_three, var_four, var_five, var_six, var_seven)

# Further indentation required as indentation is not distinguishable.
def long_function_name (
var_one, var_two, var_three,
var_four):
def long_function_name(var_one, var_two, var_three, var_four):
print(var_one)

result = some_function_that_takes_arguments(
'a', 'b', 'c',
'd', 'e', 'f',
)

my_list = [
1, 2, 3,
4, 5, 6,
]
def some_function_that_takes_arguments(one, two, three, four, five, six):
return one


# Arguments on first line forbidden when not using vertical alignment.
foo = long_function_name(
"var_one", "var_two", "var_three", "var_four", "var_five", "var_six", "var_seven"
)

result = some_function_that_takes_arguments("a", "b", "c", "d", "e", "f")

my_list = [1, 2, 3, 4, 5, 6]

x = { 'a':37,'b':42, 'c':927}
x = {"a": 37, "b": 42, "c": 927}
3 changes: 1 addition & 2 deletions playbook.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
# This comment is indented at the wrong level
---
- name: DEPLOYING SNMP CONFIGURATIONS ON IOS AND JUNOS
BASED ON THE NETWORK OS TYPE FROM A DICTIONARY
hosts: iosxe,vmx
vars:
ansible_connection: network_cli
Expand Down

0 comments on commit cceb9ae

Please sign in to comment.