mirror of
https://github.com/OMGeeky/flucto-heisskleber.git
synced 2026-01-03 18:15:23 +01:00
137 lines
2.9 KiB
TOML
137 lines
2.9 KiB
TOML
[build-system]
|
|
requires = ["hatchling", "hatch-vcs"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "heisskleber"
|
|
description = "Heisskleber"
|
|
authors = [
|
|
{ name = "Felix Weiler-Detjen", email = "felix@flucto.tech" },
|
|
]
|
|
license = {file = "LICENSE"}
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
dynamic = ["version"]
|
|
dependencies= [
|
|
"aiomqtt>=2.3.0",
|
|
"pyserial>=3.5",
|
|
"pyyaml>=6.0.2",
|
|
"pyzmq>=26.2.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/flucto-gmbh/heisskleber"
|
|
Repository = "https://github.com/flucto-gmbh/heisskleber"
|
|
Documentation = "https://heisskleber.readthedocs.io"
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
test = [
|
|
"pytest>=8.3.3",
|
|
"pytest-cov>=5.0.0",
|
|
"coverage[toml]>=7.6.1",
|
|
"xdoctest>=1.2.0",
|
|
"pytest-asyncio>=0.24.0",
|
|
]
|
|
docs = [
|
|
"furo>=2024.8.6",
|
|
"myst-parser>=4.0.0",
|
|
"sphinx>=8.0.2",
|
|
"sphinx-autobuild>=2024.9.19",
|
|
"sphinx-rtd-theme>=0.5.1",
|
|
"sphinx_copybutton",
|
|
"sphinx_autodoc_typehints",
|
|
]
|
|
filter = [
|
|
"numpy>=2.1.1",
|
|
"scipy>=1.14.1",
|
|
]
|
|
|
|
[tool.uv]
|
|
dev-dependencies = [
|
|
"deptry>=0.20.0",
|
|
"mypy>=1.11.2",
|
|
"ruff>=0.6.8",
|
|
"xdoctest>=1.2.0",
|
|
"nox>=2024.4.15",
|
|
"pytest>=8.3.3",
|
|
"pytest-cov>=5.0.0",
|
|
"coverage[toml]>=7.6.1",
|
|
"pytest-asyncio>=0.24.0",
|
|
"pre-commit>=4.0.1",
|
|
"types-aiofiles>=24.1.0.20241221",
|
|
]
|
|
package = true
|
|
|
|
[tool.coverage.paths]
|
|
source = ["heisskleber", "*/site-packages"]
|
|
tests = ["tests", "*/tests"]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
source = ["src/heisskleber"]
|
|
omit = ["tests/*"]
|
|
|
|
[tool.coverage.report]
|
|
show_missing = true
|
|
# fail_under = 100
|
|
|
|
[tool.mypy]
|
|
strict = true
|
|
warn_unreachable = true
|
|
pretty = true
|
|
show_column_numbers = true
|
|
show_error_context = true
|
|
exclude = ["tests/*", "^test_*\\.py"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py39"
|
|
line-length = 120
|
|
fix = true
|
|
|
|
[tool.ruff.lint]
|
|
select = ["ALL"]
|
|
ignore = [
|
|
"E501", # LineTooLong
|
|
"E731", # DoNotAssignLambda
|
|
"A001", #
|
|
"D100", # Missing module docstring
|
|
"D104", # Missing package docstring
|
|
"D107", # Missing __init__ docstring
|
|
"ANN101", # Deprecated and stupid self annotation
|
|
"ANN401", # Dynamically typed annotation
|
|
"FA102", # Missing from __future__ import annotations
|
|
"FBT001", # boolean style argument in function definition
|
|
"FBT002", # boolean style argument in function definition
|
|
"ARG002", # Unused kwargs
|
|
"TD002",
|
|
"TD003",
|
|
"FIX002",
|
|
"COM812",
|
|
"ISC001",
|
|
"ARG001",
|
|
"INP001",
|
|
"TRY003", # Avoid specifying long messages in Exceptions
|
|
"EM101", # Exceptions must not use string literal
|
|
]
|
|
|
|
[tool.ruff.lint.pydocstyle]
|
|
convention = "google"
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/*" = ["S101", "D", "T201", "PLR2", "SLF001", "ANN"]
|
|
"bin/*" = [
|
|
"ERA001", # Found commented-out code
|
|
]
|
|
|
|
|
|
[tool.hatch]
|
|
version.source = "vcs"
|
|
version.path = "src/heisskleber/__init__.py"
|
|
version.raw-options = { local_scheme = "no-local-version" }
|
|
|
|
[tool.hatch.envs.default]
|
|
features = ["test"]
|
|
scripts.test = "pytest {args}"
|