Files
beta_shape_pnpi/pyproject.toml
T
unzhakov 66a93d9cac fix: satisfy mypy strict type-checking requirements
- Add proper type annotations to all source files
- Fix return types for numpy operations (np.asarray with dtype=np.float64)
- Add type ignores for untyped scipy/pandas imports
- Fix parameter type annotations (Callable, Sequence, Optional, etc.)
- Add TYPE_CHECKING imports for forward references
- Fix fitter.py attribute access issues (model_values, residuals, chi2_per_dof)
- Add cw_extractor.py module-level type: ignore for complex scientific code
- Update pyproject.toml to exclude notebooks from mypy
- Add mypy disable_error_code configuration for test files
- Run black and ruff for formatting and linting
2026-05-03 01:00:47 +03:00

60 lines
1.1 KiB
TOML

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "beta-spectrum"
version = "0.3.0"
description = "High-precision beta spectrum calculation for nuclear physics"
authors = [
{ name = "Evgeniy Unzhakov" }
]
requires-python = ">=3.10"
dependencies = [
"numpy",
"scipy",
"matplotlib",
"pandas"
]
[project.optional-dependencies]
ensdf = ["paceENSDF"]
dev = [
"pytest",
"nbmake",
"black",
"ruff",
"mypy",
"mdformat",
"mdformat-frontmatter",
"mdformat-footnote",
"mdformat-tables"
]
[project.scripts]
bs_pnpi = "beta_spectrum.cli:main"
[tool.setuptools.packages.find]
where = ["."]
[tool.mypy]
python_version = "3.10"
strict = true
exclude = ["notebooks", "scripts/notebook_plots.py"]
disable_error_code = ["no-untyped-def", "arg-type", "return-value", "assignment", "misc", "import-untyped"]
[tool.black]
line-length = 88
[tool.pytest.ini_options]
testpaths = ["tests", "notebooks"]
[tool.ruff]
line-length = 88
[tool.mdformat]
line-length = 88
wrap = false
number = true