Skip to content

Commit 36fa335

Browse files
author
James Boulton
committed
Added visual code workspace
1 parent 6fb7f32 commit 36fa335

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ max-line-length=240
1919
# (useful for modules/projects where namespaces are manipulated during runtime
2020
# and thus existing member attributes cannot be deduced by static analysis. It
2121
# supports qualified module names, as well as Unix pattern matching.
22-
ignored-modules=zmq
22+
# ignored-modules=zmq
2323

2424
[DESIGN]
2525
max-locals=25

dashio/ip.py

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def get_local_ip_v6_address():
4343
i_address = socket.getaddrinfo(socket.gethostname(), None, socket.AF_INET6)[1][4][0]
4444
return i_address
4545

46+
4647
def is_port_in_use(ip_address, port):
4748
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as port_s:
4849
return port_s.connect_ex((ip_address, port)) == 0

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ warn_redundant_casts = true
2121
warn_return_any = true
2222
warn_unreachable = true
2323
warn_unused_configs = true
24-
no_implicit_reexport = true
24+
no_implicit_reexport = true

python-dashio.code-workspace

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"python.testing.pytestEnabled": false,
9+
"python.testing.unittestEnabled": true,
10+
"python.testing.unittestArgs": [
11+
"-v",
12+
"-s",
13+
"./tests",
14+
"-p",
15+
"test_*.py"
16+
],
17+
"python.analysis.typeCheckingMode": "basic",
18+
"flake8.args": [
19+
"--config=${workspaceFolder}/.pylintrc"
20+
]
21+
}
22+
}

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="dashio",
8-
version="3.4.4",
8+
version="3.4.5",
99
description="DashIO interface library",
1010
long_description=long_description,
1111
long_description_content_type="text/markdown",
@@ -14,6 +14,7 @@
1414
url="https://dashio.io",
1515
download_url="https://github.com/dashio-connect/python-dashio",
1616
packages=find_packages(),
17+
package_data={"dashio": ["py.typed"]},
1718
license="MIT",
1819
classifiers=["Programming Language :: Python :: 3.7", "Operating System :: OS Independent"],
1920
install_requires=["paho-mqtt", "pyzmq", "python-dateutil", "zeroconf", "shortuuid", "pyserial", "astral", "pydantic"],

0 commit comments

Comments
 (0)