diff --git a/.vscode/launch.json b/.vscode/launch.json index d29106d..ab1853a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,35 +1,36 @@ { - "version": "0.2.0", - "configurations": [ - { - "name": "Python Debugger: Current File", - "type": "debugpy", - "request": "launch", - "program": "${file}", - "args": [ - "--backend=scipy" - ], - "console": "integratedTerminal" - }, - { - "name": "Run All Tests (pytest)", - "type": "debugpy", - "request": "launch", - "module": "pytest", - "args": [ - "tests" - ], - "console": "integratedTerminal" - }, - { - "name": "Run All Tests with Coverage (pytest-cov)", - "type": "debugpy", - "request": "launch", - "module": "pytest", - "args": [ - "--cov=hello", "tests" - ], - "console": "integratedTerminal" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: Current File", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "args": [ + "--backend=scipy" + ], + "console": "integratedTerminal" + }, + { + "name": "Run All Tests (pytest)", + "type": "debugpy", + "request": "launch", + "module": "pytest", + "args": [ + "tests" + ], + "console": "integratedTerminal" + }, + { + "name": "Run All Tests with Coverage (pytest-cov)", + "type": "debugpy", + "request": "launch", + "module": "pytest", + "args": [ + "--cov=hello", + "tests" + ], + "console": "integratedTerminal" + } + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index ded9998..e84f60a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,20 +1,20 @@ { - "python.venvPath": "${workspaceFolder}/.venv", - "python.testing.unittestArgs": [ - "-v", - "-s", - "./tests", - "-p", - "*Test.py" - ], - "python.testing.pytestEnabled": true, - "python.testing.unittestEnabled": false, - "black-formatter.interpreter": [ - "${workspaceFolder}/.venv/bin/python3" - ], - "black-formatter.args": [ - "--config=setup.cfg" - ], - "python.analysis.typeCheckingMode": "standard", - "python.testing.pytestArgs": [] + "python.venvPath": "${workspaceFolder}/.venv", + "python.testing.unittestArgs": [ + "-v", + "-s", + "./tests", + "-p", + "*Test.py" + ], + "python.testing.pytestEnabled": true, + "python.testing.unittestEnabled": false, + "black-formatter.interpreter": [ + "${workspaceFolder}/.venv/bin/python3" + ], + "black-formatter.args": [ + "--config=setup.cfg" + ], + "python.analysis.typeCheckingMode": "standard", + "python.testing.pytestArgs": [] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 328d1b1..8b06c48 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,15 +1,15 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "Create Python venv", - "type": "shell", - "command": "if [ -d /var/chroot/buildroot ];then dpkgdeps -v --arch $(grep TARGET_ARCH /home/crossbuilder/target/target | cut -d'=' -f2 | tr -d \\') .;else dpkgdeps -v .;fi && rm -rf .venv && python3 -m venv --system-site-packages .venv && .venv/bin/pip install -e . && .venv/bin/python3 -m mypy --non-interactive --install-types && .venv/bin/pip install pytest-cov || true", - "group": "build", - "detail": "Creates a Python virtual environment in the .venv folder", - "problemMatcher": [ - "$eslint-compact" - ] - } - ] + "version": "2.0.0", + "tasks": [ + { + "label": "Create Python venv", + "type": "shell", + "command": "if [ -d /var/chroot/buildroot ];then dpkgdeps -v --arch $(grep TARGET_ARCH /home/crossbuilder/target/target | cut -d'=' -f2 | tr -d \\') .;else dpkgdeps -v .;fi && rm -rf .venv && python3 -m venv --system-site-packages .venv && .venv/bin/pip install -e . && .venv/bin/python3 -m mypy --non-interactive --install-types && .venv/bin/pip install pytest-cov || true", + "group": "build", + "detail": "Creates a Python virtual environment in the .venv folder", + "problemMatcher": [ + "$eslint-compact" + ] + } + ] } diff --git a/README.md b/README.md index 2d7f101..bbba9ad 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,5 @@ [![Coverage badge](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/EffectiveRange/python-hello/python-coverage-comment-action-data/endpoint.json)](https://htmlpreview.github.io/?https://github.com/EffectiveRange/python-hello/blob/python-coverage-comment-action-data/htmlcov/index.html) # python-hello + A service advertizer/discovery protocol library using ZeroMQ diff --git a/hello/service.py b/hello/service.py index 3bca7be..0b2c523 100644 --- a/hello/service.py +++ b/hello/service.py @@ -19,7 +19,7 @@ class Service: def __repr__(self) -> str: return (f"Service(uuid='{self.uuid}', name='{self.name}', role='{self.role}', " - f"urls={self.urls}, info={self.info}), addr='{self.address}'") + f"urls={self.urls}, info={self.info}, address='{self.address}')") def to_dict(self) -> dict[str, Any]: return {