-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
141 lines (120 loc) · 3.12 KB
/
pyproject.toml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[tool.poetry]
name = "pymodbus_repl"
version = "2.0.4"
description = "REPL (Read-Eval-Print Loop) tool for working with Modbus devices using the Pymodbus library."
authors = ["dhoomakethu <[email protected]>"]
readme = "README.md"
packages = [{include = "pymodbus_repl"}]
repository = "https://github.com/pymodbus-dev/repl"
[tool.poetry.dependencies]
python = ">=3.9.0,<4.0"
typer = {extras = ["all"], version = "^0.9.0"}
prompt-toolkit = "^3.0.43"
pygments = "^2.17.2"
tabulate = "^0.9.0"
[[tool.poetry.dependencies.aiohttp]]
python="3.12"
version=">=3.9.0b0"
[[tool.poetry.dependencies.aiohttp]]
python="<3.12"
version=">=3.8.6"
[tool.setuptools.packages.find]
include = ["pymodbus_repl"]
[tool.poetry.group.dev.dependencies]
pymodbus = {git = "https://github.com/pymodbus-dev/pymodbus", rev = "dev"}
ruff = "^0.5.6"
coverage = "^7.4.1"
pytest-xdist = "^3.5.0"
pytest-cov = "^4.1.0"
twine = "^5.0.0"
mypy = "^1.11.1"
types-pygments = "^2.18.0.20240506"
types-tabulate = "^0.9.0.20240106"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov-report html"
[tool.coverage.run]
source = [
"pymodbus_repl/"
]
omit = ["examples/contrib/"]
branch = true
[tool.coverage.report]
exclude_also = [
"except ImportError:",
"_check_system_health",
"if __name__ == .__main__.:",
]
skip_covered = true
fail_under = 70.0
show_missing = true
[tool.coverage.html]
directory = "build/cov"
[tool.codespell]
skip = "./build,./doc/source/_static,venv,.venv,.git,htmlcov,CHANGELOG.rst,.mypy_cache"
ignore-words-list = "asend"
[tool.ruff]
target-version="py38"
exclude = [
"venv",
".venv",
".git",
"build",
"doc",
"contrib"
]
line-length = 88
# indent-width = 4
[tool.ruff.lint]
ignore = [
"E501", # line too long
"E731", # lambda expressions
"S101", # Use of `assert`
"S311", # PRNG for cryptography
"S104", # binding on all interfaces
"RUF012", # typing.ClassVar
"RUF015" # next(iter(list)) instead of list[0]
]
select = [
"B007", # Loop control variable {name} not used within loop body
"B014", # Exception handler with duplicate exception
"C", # complexity
"D", # docstrings
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"PLC", # pylint
"PT", # flake8-pytest-style
"RUF", # ruff builtins
"S", # bandit
"SIM105", # flake8-simplify
"SIM117", #
"SIM118", #
"SIM201", #
"SIM212", #
"SIM300", #
"SIM401", #
"UP", # pyupgrade
"W", # pycodestyle warnings
# "TRY", # tryceratops
"TRY004", # Prefer TypeError exception for invalid type
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.isort]
lines-after-imports = 2
known-local-folder = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.poetry.scripts]
"pymodbus.console" = "pymodbus_repl.client.main:main"
"pymodbus.server" = "pymodbus_repl.server.main:app"