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
|
[tool.poetry]
name = "csaps"
version = "1.3.3"
description = "Cubic spline approximation (smoothing)"
authors = ["Evgeny Prilepin <esp.home@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/espdev/csaps"
repository = "https://github.com/espdev/csaps"
documentation = "https://csaps.readthedocs.io"
keywords = ["cubic", "spline", "approximation", "smoothing", "interpolation", "csaps"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
include = [
"LICENSE",
"CHANGELOG.md",
"CONTRIBUTORS.txt",
]
packages = [
{include = "csaps"}
]
[tool.poetry.dependencies]
python = ">=3.10"
typing-extensions = "*"
numpy = [
{version = "*", python = "<3.12"},
{version = ">=1.26.2", python = ">=3.12"},
]
scipy = [
{version = "*", python = "<3.12"},
{version = ">=1.11.4", python = ">=3.12"},
]
[tool.poetry.group.dev.dependencies]
setuptools = "^78.1.0"
pytest = "^8.3.5"
pytest-cov = "^6.1.1"
ruff = "^0.11.5"
mypy = "^1.15.0"
scipy-stubs = "*"
pre-commit = "^4.2.0"
poethepoet = "^0.33.1"
[tool.poetry.group.docs.dependencies]
sphinx = "^7.1.2"
docutils = "^0.20.0"
furo = "^2024.8.6"
numpydoc = "^1.6.0"
m2r2 = "^0.3.2"
matplotlib = "^3.7.4"
[build-system]
requires = ["poetry-core", "setuptools"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py310"
line-length = 120
exclude = [
".ruff_cache",
".venv",
]
[tool.ruff.lint]
select = [
"E", # All pycodestyle errors
"W", # All pycodestyle warnings
"F", # All Pyflakes errors
"A", # All flake8-builtins
"Q", # Quotes
"I", # Sort imports
"T201", # print found
"T203", # pprint found
]
ignore = []
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
[tool.ruff.lint.isort]
force-to-top = ["typing", "typing_extensions", "pytest"]
force-sort-within-sections = true
[tool.ruff.format]
quote-style = "single"
[tool.mypy]
python_version = "3.10"
[tool.poe.tasks]
test = "pytest -v "
test-cov = "pytest --cov=csaps"
test-ci = "pytest -v --color=yes --cov=csaps --cov-report=term --cov-report=lcov:coverage.info"
check-format-pre-commit = "ruff format --check"
check-lint-pre-commit = "ruff check"
check-types-pre-commit = "mypy"
check-format = "ruff format . --check"
check-lint = "ruff check ."
check-types = "mypy -p csaps"
check = ["check-format", "check-lint", "check-types"]
fix-format = "ruff format ."
fix-lint = "ruff check --fix ."
fix = ["fix-format", "fix-lint"]
docs = "sphinx-build docs/ docs/_build/ --builder html"
|