Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (110 loc) · 3.24 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (110 loc) · 3.24 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "scruple"
version = "0.1.0"
description = "Qualitative coding that codes what it's sure of, refuses the rest, and proves both."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
authors = [{ name = "scruple contributors" }]
keywords = [
"qualitative-research",
"content-analysis",
"inter-rater-reliability",
"calibration",
"conformal-prediction",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Information Analysis",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.6",
"pyyaml>=6.0",
"httpx>=0.27",
"numpy>=1.24",
"scipy>=1.10",
"pandas>=2.0",
"rich>=13.0",
"typer>=0.12",
]
[project.optional-dependencies]
chart = ["matplotlib>=3.7"]
parquet = ["pyarrow>=14.0"]
stata = ["pandas>=2.0"]
spss = ["pyreadstat>=1.2"]
all = ["matplotlib>=3.7", "pyarrow>=14.0", "pyreadstat>=1.2"]
[project.urls]
Homepage = "https://github.com/samugit83/scruple"
Documentation = "https://github.com/samugit83/scruple/tree/main/docs"
Source = "https://github.com/samugit83/scruple"
[project.scripts]
scruple = "scruple.cli.main:app"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"hypothesis>=6.100",
"mypy>=1.10",
"ruff>=0.5",
"types-PyYAML>=6.0",
"pandas-stubs>=2.0",
"matplotlib>=3.7",
"pyarrow>=14.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/scruple"]
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests", "bench"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "PT", "SIM", "RUF"]
ignore = ["N818"]
[tool.ruff.lint.per-file-ignores]
# PT018: narrowing asserts (`x is not None and y is not None`) exist to satisfy
# mypy before dereferencing; splitting them adds noise without adding signal.
"tests/**" = ["E501", "PT018"]
"bench/**" = ["E501", "T201"]
[tool.mypy]
# Deliberately not pinned: numpy and scipy ship stubs that use syntax newer than
# the package floor, so mypy targets whichever interpreter the CI matrix entry is
# running. ruff's target-version enforces the floor's syntax instead.
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
disallow_untyped_defs = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "scruple.stats.*"
strict = true
[[tool.mypy.overrides]]
module = ["scipy.*", "pyreadstat.*", "matplotlib.*", "hypothesis.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers"
markers = [
"statistical: slow simulation tests validating the guarantee (deselect with -m 'not statistical')",
"slow: long-running performance guards",
]
filterwarnings = ["error::DeprecationWarning:scruple.*"]
[tool.coverage.run]
branch = true
source = ["src/scruple"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"\\.\\.\\.",
]