Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (78 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (78 loc) · 2.47 KB
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
[project]
name = "bootstrap-stat"
version = "0.3.0.0"
description = "Bootstrap method for standard errors, confidence intervals, and more!"
authors = [{ name = "Bob Wilson", email = "bob@convexanalytics.com" }]
readme = "README.md"
license = "Apache-2.0"
keywords = ["statistics", "nonparametric", "machine learning"]
requires-python = ">=3.10"
dependencies = [
# numpy>=1.25 for SeedSequence.spawn-based parallel rngs and the modern
# default_rng/Generator API used throughout this package.
"numpy>=1.25",
"scipy>=1.3",
# pandas>=1.4 supports passing a numpy.random.Generator as random_state
# in DataFrame.sample / Series.sample.
"pandas>=1.4",
"pathos>=0.2.5",
]
[project.urls]
Documentation = "https://www.convexanalytics.com/bootstrap-stat/index.html"
Repository = "https://github.com/rwilson4/bootstrap-stat"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"black>=23.0",
"ruff>=0.1.0",
"mypy>=1.0",
"statsmodels>=0.14",
"sphinx>=7.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["bootstrap_stat"]
[tool.black]
line-length = 88
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by black)
"SIM108", # ternary operator - prefer explicit if/else per style guide
"SIM105", # contextlib.suppress - prefer explicit try/except
"SIM101", # multiple isinstance - prefer explicit checks
"B007", # unused loop variable - common pattern in numerical code
"B905", # zip strict - not always needed
"B028", # stacklevel in warnings - not critical
]
[tool.pytest.ini_options]
addopts = "-p no:warnings --cov=bootstrap_stat --cov-report=html --cov-report=term --doctest-modules"
testpaths = ["bootstrap_stat", "tests"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"]
[tool.mypy]
python_version = "3.10"
warn_unused_ignores = true
# Gradual typing: ignore missing imports and some error categories
# as we incrementally add type hints to the codebase
ignore_missing_imports = true
check_untyped_defs = false
disallow_untyped_defs = false
disallow_incomplete_defs = false
[dependency-groups]
dev = [
"pydata-sphinx-theme>=0.17.1",
]