Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shutgun committed Nov 27, 2020
1 parent 9b57bbd commit ac68e08
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!--
In case your pull request goes to master, please have a look at the following checklist. Otherwise feel free to remove this chapter.
Put an 'x' in the boxes that apply.
Put an 'x' in the boxes that apply.
-->

- [ ] Version number in \_\_init\_\_.py was properly set.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/convert_todos_to_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL: "# TODO:"
COMMENT_MARKER: "#"
id: "todo"
id: "todo"
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,5 @@ dmypy.json
### PyCharm ###
.idea


### Testfile ###
test.py
test.py
1 change: 0 additions & 1 deletion example_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from devolo_plc_api.device import Device


# IP of the device to query
IP = "192.168.0.10"

Expand Down
2 changes: 0 additions & 2 deletions example_sync.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from devolo_plc_api.device import Device


# IP of the device to query
IP = "192.168.0.10"

Expand Down Expand Up @@ -68,7 +67,6 @@ def run():
# Start WPS push button configuration. If WPS was started successfully, True is returned, otherwise False.
print("WPS started" if dpa.device.start_wps() else "WPS start failed")


# Get PLC network overview with enriched information like firmware version,
# {'network':
# {'devices':
Expand Down
20 changes: 11 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[flake8]
max-complexity=10
max-cognitive-complexity=5
max-line-length=127
ignore=E303,W503
exclude=.*,devolo_plc_api/*/devolo_idl_*.py
max-complexity = 10
max-cognitive-complexity = 5
max-line-length = 127
ignore = E303,W503
exclude = .*,devolo_plc_api/*/devolo_idl_*.py

[isort]
ignore_whitespace=True
line_length=127
multi_line_output=1
order_by_type=True
filter_files = True
ignore_whitespace = True
line_length = 127
multi_line_output = 1
order_by_type = True
skip_glob = *_pb2.py

[mypy]
ignore_missing_imports = True
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
}
},
"ip": "192.168.0.10"
}
}

0 comments on commit ac68e08

Please sign in to comment.