-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (142 loc) · 3.97 KB
/
pyproject.toml
File metadata and controls
155 lines (142 loc) · 3.97 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[project]
name = "colour-specio"
version = "0.4.2a0"
description = "Instrument control for spectrometers"
authors = [{ name = "Tucker Downs", email = "tucker@tjdcs.dev" }]
maintainers = [{ name = "Tucker Downs", email = "tucker@tjdcs.dev" }]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.12,<3.14"
keywords = [
"colour-science",
"spectrometer",
"colorimeter",
"instrument-control",
"color-measurement",
"spectral-data",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"colour-science>=0.4.6",
"numpy>=2.3.1",
"pyserial>=3.5",
"protobuf>=5.27.0",
"bidict>=0.23.1",
"aenum>=3.1.16",
"xxhash>=3.5.0",
]
[project.urls]
Homepage = "https://github.com/tjdcs/specio"
Repository = "https://github.com/tjdcs/specio.git"
Issues = "https://github.com/tjdcs/specio/issues"
[project.scripts]
csmf_doctor = "specio.scripts.csmf_doctor:main"
csmf_anonymize = "specio.scripts.csmf_anonymize:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["specio"]
include = ["LICENSE"]
exclude = [
"data/",
"examples/",
"junk/",
"manuals/",
"scripts/",
"tests/",
"**/*CLAUDE.md",
"specio/**/tests",
]
[dependency-groups]
dev = [
"invoke>=2.2.0",
"pre-commit>=4.2.0",
"pyright>=1.1.403",
"pytest>=8.4.1",
"pytest-xdist>=3.6.0",
"ruff>=0.12.3",
]
extras = ["matplotlib>=3.7.0", "ipykernel>=6.25.0", "pandas>=2.0.0"]
[tool.ruff]
line-length = 88
target-version = "py313"
exclude = ["*_pb2.py", "*_pb2.pyi"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"C90", # mccabe complexity
"T20", # flake8-print
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
"B008", # Do not perform function calls in argument defaults
"T201", # Print found (allow for debugging)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "T20"]
"specio/**/tests/*" = ["ARG", "T20"]
"scripts/*" = ["T201"]
"examples/*" = ["T201"]
[tool.ruff.lint.isort]
known-first-party = ["specio"]
split-on-trailing-comma = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pyright]
include = ["examples", "tests", "specio"]
exclude = ["**/__pycache__", "**/*_pb2.py", "**/*_pb2.pyi"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.13"
typeCheckingMode = "standard"
reportMissingImports = true
reportMissingTypeStubs = false
reportUnusedImport = true
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedVariable = true
reportDuplicateImport = true
reportInconsistentConstructor = true
reportMissingParameterType = true
reportMissingReturnType = true
reportUnnecessaryTypeIgnoreComment = true
reportMissingModuleSource = false
reportUnboundVariable = false
reportUnnecessaryCast = true
reportUnsupportedDunderAll = false
reportUnusedExpression = false
[tool.pytest.ini_options]
testpaths = ["tests", "specio"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
norecursedirs = [".*", "*.egg", "dist", "build", "__pycache__", "*.pyc"]
ignore_glob = ["**/*_pb2.py", "**/*_pb2.pyi"]