Skip to content

Commit d1689ac

Browse files
author
KC3ZVD
committed
refactor: namespace the project
1 parent 798cd6e commit d1689ac

File tree

11 files changed

+12
-14
lines changed

11 files changed

+12
-14
lines changed

.coveragerc

Lines changed: 0 additions & 3 deletions
This file was deleted.

hatch.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[version]
2-
path = "src/iot_state/__about__.py"
2+
path = "src/kc3zvd/iot_state/__about__.py"
33

44
[envs.types]
55
extra-dependencies = [
66
"mypy>=1.0.0",
77
]
88
[envs.types.scripts]
9-
check = "mypy --install-types --non-interactive {args:src/iot_state tests}"
9+
check = "mypy --install-types --non-interactive {args:src/kc3zvd/iot_state tests}"
1010

1111
[envs.default.scripts]
12-
worker = "celery -A iot_state.workers.wled worker"
13-
listener = "python -m iot_state.listeners.wled"
12+
worker = "celery -A kc3zvd.iot_state.workers.wled worker"
13+
listener = "python -m kc3zvd.iot_state.listeners.wled"
1414

1515
[envs.dev]
1616

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,22 @@ Issues = "https://github.com/kc3zvd/iot-state/issues"
4040
Source = "https://github.com/kc3zvd/iot-state"
4141

4242
[project.scripts]
43-
iot-state = "iot_state.cli:iot_state"
43+
iot-state = "kc3zvd.iot_state.cli:iot_state"
4444

4545
[tool.coverage.run]
46-
source_pkgs = ["iot_state", "tests"]
46+
source_pkgs = ["kc3zvd.iot_state", "tests"]
4747
branch = true
4848
parallel = true
4949
omit = [
50-
"src/iot_state/__about__.py",
50+
"src/kc3zvd/iot_state/__about__.py",
5151
]
5252

5353
[tool.coverage.paths]
54-
iot_state = ["src/iot_state", "*/iot-state/src/iot_state"]
54+
iot_state = ["src/kc3zvd/iot_state", "*/iot-state/src/kc3zvd/iot_state"]
5555
tests = ["tests", "*/iot-state/tests"]
5656

5757
[tool.coverage.report]
58+
show_missing = true
5859
exclude_lines = [
5960
"no cov",
6061
"if __name__ == .__main__.:",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2024-present KC3ZVD <[email protected]>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = "0.0.1"
4+
__version__ = "0.0.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/test_iot_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from iot_state import devices
1+
from kc3zvd.iot_state import devices
22

33
def test_iot_state():
44
device = devices.Device()

tests/test_utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from iot_state import utility
1+
from kc3zvd.iot_state import utility
22

33
def test_utility():
44
assert utility.normalize('TesT sTRiNg') == 'test_string'

0 commit comments

Comments
 (0)