Skip to content

Commit e5afca2

Browse files
committed
chore(pyright): add pyrightconfig and update uv lock
did this because i cant get around the problem pyright is giving me saying cant import module dcm230 Signed-off-by: Bobo Bäck Engström <bobo@id8-engineering.io>
1 parent 26b4612 commit e5afca2

3 files changed

Lines changed: 157 additions & 11 deletions

File tree

pyproject.toml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,41 @@
11
[project]
2-
name = "python-dcm230"
3-
version = "0.1.0"
4-
description = "Driver for Eastron DCM230 Series Single Phase Energy Meters using Modbus RTU"
2+
name = "python-em511"
3+
version = "0.0.1"
4+
description = "Driver for Carlo Gavazzi EM511 Series Single Phase Energy Meters using Modbus RTU"
55
readme = "README.md"
6-
requires-python = ">=3.12"
7-
dependencies = []
6+
authors = [
7+
{ name = "Mirza Krak", email = "mirza@mkrak.org" }
8+
]
9+
requires-python = ">=3.10"
10+
dependencies = [
11+
"pymodbus[serial]>=3.11"
12+
]
13+
license = "MIT"
14+
15+
[build-system]
16+
requires = ["hatchling"]
17+
build-backend = "hatchling.build"
18+
19+
[tool.hatch.build.targets.wheel]
20+
packages = ["src/dcm230"]
821

922
[dependency-groups]
1023
dev = [
1124
"pre-commit>=4.3.0",
12-
"ruff>=0.14.3",
1325
"pyright>=1.1.406",
1426
"pytest>=8.4.2",
27+
"ruff>=0.14.0",
1528
]
29+
30+
[tool.ruff]
31+
line-length = 120
32+
33+
[tool.ruff.lint]
34+
select = ["ALL"]
35+
36+
ignore = [
37+
"COM812", # in conflict with formatter
38+
]
39+
40+
[tool.ruff.lint.pydocstyle]
41+
convention = "google"

pyrightconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"include": [
3+
"src"
4+
],
5+
"extraPaths": [
6+
"src"
7+
],
8+
"reportMissingImports": false,
9+
"reportMissingModuleSource": false,
10+
"reportAttributeAccessIssue": false
11+
}

0 commit comments

Comments
 (0)