-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (63 loc) · 1.71 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (63 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[build-system]
requires = ["hatchling>=1.27.0", "hatch-vcs>=0.4.0"]
build-backend = "hatchling.build"
[project]
name = "sma-modbus"
dynamic = ["version"]
description = "Library for SMA Modbus TCP interface, built on modbus-connection"
readme = "README.md"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
authors = [{ name = "burmistrzak", email = "61958704+burmistrzak@users.noreply.github.com" }]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: System :: Hardware",
]
dependencies = ["modbus-connection>=4.6.1,<5"]
[tool.hatch.version]
source = "vcs"
[project.urls]
Homepage = "https://github.com/burmistrzak/sma-modbus"
Repository = "https://github.com/burmistrzak/sma-modbus"
Changelog = "https://github.com/burmistrzak/sma-modbus/releases"
[dependency-groups]
dev = [
# tmodbus backend for the script in scripts/
"modbus-connection[tmodbus]>=4.6.1,<5",
"mypy>=1.14",
"pytest>=8",
"pytest-asyncio>=0.25",
"ruff>=0.9",
]
[tool.hatch.build.targets.sdist]
include = ["sma_modbus"]
[tool.hatch.build.targets.wheel]
packages = ["sma_modbus"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"A", # builtins shadowing
"ASYNC", # async checks
"B", # bugbear
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"RUF", # ruff specific
"SIM", # simplify
"UP", # pyupgrade
]
ignore = ["D203", "D213"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.mypy]
python_version = "3.12"
strict = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"