forked from numat/clickplc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
99 lines (86 loc) · 2.39 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "clickplc"
version = "0.12.0"
description="Python driver for AutomationDirect (formerly Koyo) Ethernet ClickPLCs."
dependencies = [
"pymodbus>=2.4.0; python_version == '3.9'",
"pymodbus>=3.0.2,<3.8.0; python_version >= '3.10'",
]
authors = [
{name = "Pat Fuller", email = "[email protected]" },
]
maintainers = [
{name = "Alex Ruddick", email = "[email protected]" }
]
readme = "README.md"
classifiers = [
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)"
]
[project.optional-dependencies]
test = [
'mypy==1.14.0',
'pytest',
'pytest-cov',
'pytest-asyncio>=0.23.8',
'ruff==0.8.1',
'types-PyYAML',
]
[project.scripts]
clickplc = "clickplc:command_line"
[project.urls]
Homepage = "https://github.com/alexrudd2/clickplc"
Issues = "https://github.com/alexrudd2/clickplc/issues"
[tool.setuptools]
packages = ["clickplc"]
[tool.ruff]
extend-exclude = ["venv*"]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
ignore = [
"B005", # FIXME: lstrip()
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
]
select = [
"B", # flake8-bugbear
"C", # complexity
"D", # docstrings
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"PT", # flake8-pytest
"RUF", # ruff base config
"SIM", # flake-simplify
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
# "ARG", # flake8-unused args
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.mypy]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = ["pymodbus.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--cov=clickplc"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope="session"