-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (58 loc) · 1.3 KB
/
pyproject.toml
File metadata and controls
67 lines (58 loc) · 1.3 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
# This file is part of libtcspc
# Copyright 2019-2026 Board of Regents of the University of Wisconsin System
# SPDX-License-Identifier: MIT
[project]
name = "libtcspc"
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
"meson",
"nanobind != 2.5.0", # https://github.com/wjakob/nanobind/pull/928
"ninja",
"numpy",
"typing-extensions",
]
readme = "README.md"
license = {file = "LICENSE.txt"}
[build-system]
requires = ["meson-python"]
build-backend = "mesonpy"
[project.optional-dependencies]
testing = [
"psutil",
"pytest >= 8.0",
"pytest-mock >= 3.0",
"pytest-mypy >= 0.4",
"types-psutil",
]
docs = [
"sphinx >= 7.0",
"furo",
"myst-parser",
"sphinxcontrib-doxylink",
]
[tool.meson-python.args]
setup = [
'-Ddocs=disabled',
'-Dpython_docs=disabled',
'-Dtests=disabled',
'-Dbenchmarks=disabled',
'-Dexamples=disabled',
]
install = ["--tags=python-runtime"]
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I"]
ignore = [
"E501", # Line too long
]
[tool.mypy]
mypy_path = ["$MYPY_CONFIG_FILE_DIR/python"]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "libtcspc._version"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["python/tests"]
addopts = ["--mypy"]