Skip to content

Commit e3bb61b

Browse files
Cleanup
1 parent 1fc97ea commit e3bb61b

5 files changed

Lines changed: 67 additions & 65 deletions

File tree

.vscode/launch.json

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"name": "Python Debugger: Current File",
6-
"type": "debugpy",
7-
"request": "launch",
8-
"program": "${file}",
9-
"args": [
10-
"--backend=scipy"
11-
],
12-
"console": "integratedTerminal"
13-
},
14-
{
15-
"name": "Run All Tests (pytest)",
16-
"type": "debugpy",
17-
"request": "launch",
18-
"module": "pytest",
19-
"args": [
20-
"tests"
21-
],
22-
"console": "integratedTerminal"
23-
},
24-
{
25-
"name": "Run All Tests with Coverage (pytest-cov)",
26-
"type": "debugpy",
27-
"request": "launch",
28-
"module": "pytest",
29-
"args": [
30-
"--cov=hello", "tests"
31-
],
32-
"console": "integratedTerminal"
33-
}
34-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Python Debugger: Current File",
6+
"type": "debugpy",
7+
"request": "launch",
8+
"program": "${file}",
9+
"args": [
10+
"--backend=scipy"
11+
],
12+
"console": "integratedTerminal"
13+
},
14+
{
15+
"name": "Run All Tests (pytest)",
16+
"type": "debugpy",
17+
"request": "launch",
18+
"module": "pytest",
19+
"args": [
20+
"tests"
21+
],
22+
"console": "integratedTerminal"
23+
},
24+
{
25+
"name": "Run All Tests with Coverage (pytest-cov)",
26+
"type": "debugpy",
27+
"request": "launch",
28+
"module": "pytest",
29+
"args": [
30+
"--cov=hello",
31+
"tests"
32+
],
33+
"console": "integratedTerminal"
34+
}
35+
]
3536
}

.vscode/settings.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"python.venvPath": "${workspaceFolder}/.venv",
3-
"python.testing.unittestArgs": [
4-
"-v",
5-
"-s",
6-
"./tests",
7-
"-p",
8-
"*Test.py"
9-
],
10-
"python.testing.pytestEnabled": true,
11-
"python.testing.unittestEnabled": false,
12-
"black-formatter.interpreter": [
13-
"${workspaceFolder}/.venv/bin/python3"
14-
],
15-
"black-formatter.args": [
16-
"--config=setup.cfg"
17-
],
18-
"python.analysis.typeCheckingMode": "standard",
19-
"python.testing.pytestArgs": []
2+
"python.venvPath": "${workspaceFolder}/.venv",
3+
"python.testing.unittestArgs": [
4+
"-v",
5+
"-s",
6+
"./tests",
7+
"-p",
8+
"*Test.py"
9+
],
10+
"python.testing.pytestEnabled": true,
11+
"python.testing.unittestEnabled": false,
12+
"black-formatter.interpreter": [
13+
"${workspaceFolder}/.venv/bin/python3"
14+
],
15+
"black-formatter.args": [
16+
"--config=setup.cfg"
17+
],
18+
"python.analysis.typeCheckingMode": "standard",
19+
"python.testing.pytestArgs": []
2020
}

.vscode/tasks.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"label": "Create Python venv",
6-
"type": "shell",
7-
"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",
8-
"group": "build",
9-
"detail": "Creates a Python virtual environment in the .venv folder",
10-
"problemMatcher": [
11-
"$eslint-compact"
12-
]
13-
}
14-
]
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Create Python venv",
6+
"type": "shell",
7+
"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",
8+
"group": "build",
9+
"detail": "Creates a Python virtual environment in the .venv folder",
10+
"problemMatcher": [
11+
"$eslint-compact"
12+
]
13+
}
14+
]
1515
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
[![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)
33

44
# python-hello
5+
56
A service advertizer/discovery protocol library using ZeroMQ

hello/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Service:
1919

2020
def __repr__(self) -> str:
2121
return (f"Service(uuid='{self.uuid}', name='{self.name}', role='{self.role}', "
22-
f"urls={self.urls}, info={self.info}), addr='{self.address}'")
22+
f"urls={self.urls}, info={self.info}, address='{self.address}')")
2323

2424
def to_dict(self) -> dict[str, Any]:
2525
return {

0 commit comments

Comments
 (0)