-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (94 loc) · 2.48 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (94 loc) · 2.48 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "contingency-py"
dynamic = ["version"]
description = "Python reinforcement schedule engine for operant contingencies. Bridges contingency-dsl AST to runtime Schedule objects."
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [
{ name = "OperantKit contributors" },
]
keywords = [
"behavior-analysis",
"operant-conditioning",
"reinforcement-schedule",
"contingency-dsl",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"contingency-dsl-py @ git+https://github.com/OperantKit/contingency-dsl-py.git",
]
[project.optional-dependencies]
test = [
"pytest>=8",
"pytest-cov",
"hypothesis>=6",
]
dev = [
"contingency-py[test]",
"mypy>=1.10",
"ruff>=0.5",
]
hw-serial = [
"pyserial>=3.5",
]
[project.urls]
Homepage = "https://github.com/OperantKit"
Repository = "https://github.com/OperantKit/contingency-py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/contingency/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/contingency"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--strict-markers",
"--strict-config",
"-ra",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"hw_serial: requires pyserial and actual hardware (skipped by default)",
"hw_hil: requires HIL bridge endpoint (skipped by default)",
"unit: pure unit tests with no external dependencies",
"integration: tests that exercise cross-module interactions",
]
[tool.coverage.run]
branch = true
source = ["contingency"]
omit = ["src/contingency/_version.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "C4", "SIM", "RET"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_unused_ignores = true
warn_redundant_casts = true
[[tool.mypy.overrides]]
module = ["serial", "serial.*", "contingency_dsl", "contingency_dsl.*"]
ignore_missing_imports = true