Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

08_Regis_Correcting the file with Git actions #41

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
9 changes: 2 additions & 7 deletions playbook.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@

# This comment is indented at the wrong level

Check warning on line 1 in playbook.yml

View workflow job for this annotation

GitHub Actions / yamllint

1:3 [comments-indentation] comment not indented like content
- name: DEPLOYING SNMP CONFIGURATIONS ON IOS AND JUNOS BASED ON THE NETWORK OS TYPE FROM A DICTIONARY
- name: DEPLOYING SNMP CONFIGURATIONS ON IOS AND JUNOS BASED ON THE NETWORK OS TYPE FROM A DICTIONARY

Check warning on line 2 in playbook.yml

View workflow job for this annotation

GitHub Actions / yamllint

2:1 [document-start] missing document start "---"

Check failure on line 2 in playbook.yml

View workflow job for this annotation

GitHub Actions / yamllint

2:5 [indentation] wrong indentation: expected 0 but found 4

Check failure on line 2 in playbook.yml

View workflow job for this annotation

GitHub Actions / yamllint

2:81 [line-length] line too long (105 > 80 characters)
hosts: iosxe,vmx

Check failure on line 3 in playbook.yml

View workflow job for this annotation

GitHub Actions / yamllint

3:3 syntax error: expected '<document start>', but found '<block mapping start>' (syntax)

vars:
ansible_connection: network_cli
vendor_commands :

Check failure on line 7 in playbook.yml

View workflow job for this annotation

GitHub Actions / yamllint

7:20 [colons] too many spaces before colon
ios: |
snmp-server community ntc-team RO
snmp-server location FL_HQ
snmp-server contact JAMES_CHARLES
ios: |
ios:
set snmp location FL_HQ
set snmp contact JAMES_CHARLES
set snmp community public authorization read-only
Expand Down
Loading