-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (107 loc) · 2.49 KB
/
pyproject.toml
File metadata and controls
117 lines (107 loc) · 2.49 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
# SPDX-FileCopyrightText: 2026 Jared Callaham <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
[project]
name = "lynx-nb"
version = "0.1.5"
description = "Block diagram editor for control systems"
readme = "README.md"
authors = [
{ name = "Jared Callaham", email = "[email protected]" }
]
requires-python = ">=3.11"
dependencies = [
"anywidget>=0.9.21",
"control>=0.10.2",
"numpy>=2.4.1",
"pydantic>=2.12.5",
"traitlets>=5.14.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/lynx"]
artifacts = [
"src/lynx/static/*.js",
"src/lynx/static/*.css",
"src/lynx/static/*.map",
]
[tool.hatch.build.targets.sdist]
artifacts = [
"src/lynx/static/*.js",
"src/lynx/static/*.css",
"src/lynx/static/*.map",
]
[dependency-groups]
dev = [
"ipykernel>=7.1.0",
"ipywidgets>=8.1.8",
"jupyter>=1.1.1",
"jupyterlab>=4.5.1",
"jupyterlab-widgets>=3.0.16",
"mypy>=1.19.1",
"nbconvert>=7.16.6",
"nbformat>=5.10.4",
"nbmake>=1.5.5",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.14.10",
"furo>=2024.8.6",
"myst-nb>=1.3.0",
"myst-parser[linkify]>=4.0.1",
"reuse>=5.0.2",
"sphinx>=8.2.3",
"sphinx-design>=0.6.1",
"sphinxcontrib-googleanalytics>=0.5",
"sphinx-copybutton>=0.5.2",
]
[tool.pytest.ini_options]
minversion = "9.0"
testpaths = ["tests/python"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = [
"--strict-markers",
"--cov=lynx",
"--cov-report=html",
"--cov-report=term-missing",
]
# Note: Coverage threshold enforced in CI via: pytest --cov-fail-under=80
# During development, use --no-cov flag to skip coverage: pytest --no-cov
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [
".git",
".venv",
"build",
"dist",
"local",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
]
ignore = []
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_equality = true
[[tool.mypy.overrides]]
module = ["control", "ipywidgets"]
ignore_missing_imports = true