Skip to content

Commit

Permalink
lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stlehmann committed Jul 13, 2018
1 parent 5465d11 commit 0b46f17
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
:license: MIT, see license file or https://opensource.org/licenses/MIT
:created on 2018-06-28 15:10:47
:last modified by: Stefan Lehmann
:last modified time: 2018-07-12 13:45:36
:last modified by: Stefan Lehmann
:last modified time: 2018-07-13 10:27:58
"""
import click
Expand All @@ -21,7 +21,7 @@
click.echo(click.style('OK', fg='green'))

click.echo('\n--- Running Flake8 ---')
res = subprocess.call(['flake8'])
res = subprocess.call(['flake8', PACKAGE_NAME])
if res == 0:
click.echo(click.style('OK', fg='green'))

Expand Down
16 changes: 13 additions & 3 deletions pyads/errorcodes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""Error codes.
:author: Stefan Lehmann <[email protected]>
:license: MIT, see license file or https://opensource.org/licenses/MIT
:created on: 2018-06-11 18:15:53
:last modified by: Stefan Lehmann
:last modified time: 2018-07-13 10:30:15
"""
ERROR_CODES = {
0: "no error",
1: "Internal error",
Expand Down Expand Up @@ -62,7 +72,7 @@
1809: "symbol version invalid. Onlinechange. Release handle and get a new one",
1810: "server is in invalid state",
1811: "AdsTransMode not supported",
1812: "Notification handle is invalid. Onlinechange. Release handle and get a new one",
1812: "Notification handle is invalid. Onlinechange. Release handle and get a new one", # noqa: E501
1813: "Notification client not registered",
1814: "no more notification handles",
1815: "size for watch too big",
Expand Down Expand Up @@ -117,6 +127,6 @@
4121: "RTERR_VMXCONTROLSMISSING",
4122: "RTERR_VMXENABLEFAILS",
10060: "A socket operation was attempted to an unreachable host",
10061: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.",
10065: "No connection could be made because the target machine actively refused it"
10061: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.", # noqa: E501
10065: "No connection could be made because the target machine actively refused it",
}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ include = pyads/*
ignore = F401

[pydocstyle]
ignore = D205, D400
ignore = D105, D213, D203, D107

0 comments on commit 0b46f17

Please sign in to comment.