Skip to content

Commit

Permalink
pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 committed Oct 8, 2024
1 parent 761abe3 commit d7b3822
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 94 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

89 changes: 89 additions & 0 deletions pyproject.toml
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"
28 changes: 0 additions & 28 deletions ruff.toml

This file was deleted.

15 changes: 0 additions & 15 deletions setup.cfg

This file was deleted.

50 changes: 0 additions & 50 deletions setup.py

This file was deleted.

0 comments on commit d7b3822

Please sign in to comment.