-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
101 lines (84 loc) · 2.26 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "redsun"
dynamic = ["version"]
description = "Event-driven data acquisition software for scientific applications."
readme = "README.md"
authors = [{ name = "Jacopo Abramo", email = "[email protected]" }]
maintainers = [{ name = "Jacopo Abramo", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
license = { text = "BSD 3-Clause license" }
dependencies = [
"sunflare",
"ndv[pyqt,vispy]",
"pyqtgraph",
"importlib_metadata; python_version < '3.10'",
]
requires-python = ">=3.9"
[project.optional-dependencies]
docs = [
"sphinx",
"pydata-sphinx-theme",
"myst-parser"
]
dev = [
"ruff",
"pytest-cov",
"pytest",
"mypy"
]
[project.urls]
bugs = "https://github.com/redsun-acquisition/redsun/issues"
changelog = "https://github.com/redsun-acquisition/redsun/blob/master/changelog.md"
homepage = "https://github.com/redsun-acquisition/redsun"
[project.scripts]
redsun = "redsun.__main__:main_cli"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/redsun"]
# mypy
# ----
[tool.mypy]
files = "."
exclude = ["docs", "tests", "noxfile.py"]
disable_error_code = ["import-untyped"]
# Use strict defaults
strict = true
warn_unreachable = true
warn_no_return = true
[[tool.mypy.overrides]]
# Don't require test functions to include types
module = "tests.*"
disable_error_code = "attr-defined"
# ruff
# ----
[tool.ruff]
target-version = "py39"
extend-exclude = ["docs", "tests", "noxfile.py"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
extend-select = ["D"]
ignore = ["D100","D104"] # https://docs.astral.sh/ruff/rules/undocumented-public-package/
[tool.ruff.lint.pydocstyle]
convention = "numpy"
# https://coverage.readthedocs.io/en/latest/config.html
[tool.coverage.report]
exclude_lines = [
"@abstractmethod",
"if TYPE_CHECKING:",
"@overload",
"class .*Protocol",
"except ImportError",
"except PackageNotFoundError",
"raise NotImplementedError()",
]