forked from alexbjorling/lib-maxiv-regloicc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
89 additions
and
94 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ismatec" | ||
version = "0.4.0" | ||
description="Python driver for Ismatec Reglo ICC peristaltic pumps." | ||
authors = [ | ||
{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)" | ||
] | ||
dependencies = [ | ||
"pyserial", | ||
] | ||
[project.optional-dependencies] | ||
test = [ | ||
"mypy==1.11.*", | ||
"pytest>=8,<9", | ||
"pytest-cov", | ||
"pytest-asyncio==0.24.0", | ||
"pytest-xdist>=3,<4", | ||
"ruff==0.6.*", | ||
"types-pyserial", | ||
] | ||
|
||
[project.scripts] | ||
ismatec = "ismatec:command_line" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/alexrudd2/ismatec" | ||
Issues = "https://github.com/alexrudd2/ismatec/issues" | ||
|
||
[tool.setuptools] | ||
packages = ["ismatec"] | ||
|
||
[tool.setuptools.package-data] | ||
"ismatec" = ["py.typed"] | ||
|
||
[tool.ruff] | ||
extend-exclude = ["venv*"] | ||
line-length = 120 | ||
target-version = "py310" | ||
|
||
[tool.ruff.lint] | ||
ignore = [ | ||
"D104", # Missing docstring in public package | ||
"D107", # Missing docstring in __init__ | ||
"SIM300" # Yoda condition | ||
] | ||
select = [ | ||
"B", # bandit | ||
"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.mypy] | ||
check_untyped_defs = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov=ismatec" | ||
asyncio_mode = "auto" |