Skip to content
Closed
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
38 changes: 32 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
[project]
name = "python-dcm230"
version = "0.1.0"
description = "Driver for Eastron DCM230 Series Single Phase Energy Meters using Modbus RTU"
name = "python-em511"
version = "0.0.1"
description = "Driver for Carlo Gavazzi EM511 Series Single Phase Energy Meters using Modbus RTU"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
authors = [
{ name = "Mirza Krak", email = "mirza@mkrak.org" }
]
requires-python = ">=3.10"
dependencies = [
"pymodbus[serial]>=3.11"
]
license = "MIT"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/dcm230"]

[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"ruff>=0.14.3",
"pyright>=1.1.406",
"pytest>=8.4.2",
"ruff>=0.14.0",
]

[tool.ruff]
line-length = 120

[tool.ruff.lint]
select = ["ALL"]

ignore = [
"COM812", # in conflict with formatter
]

[tool.ruff.lint.pydocstyle]
convention = "google"
11 changes: 11 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"include": [
"src"
],
"extraPaths": [
"src"
],
"reportMissingImports": false,
"reportMissingModuleSource": false,
"reportAttributeAccessIssue": false
}
Loading
Loading