Skip to content
Merged
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
67 changes: 34 additions & 33 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
36 changes: 18 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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": []
}
26 changes: 13 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion hello/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading