-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
104 lines (90 loc) · 2.37 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
102
103
104
[build-system]
requires = ["setuptools >= 61", "setuptools_scm[toml]>=3.4", "wheel"]
[project]
name = "mantis"
description = "Acquisition engine for collecting data on the mantis microscope"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10, <4.0"
# the dynamically determined project metadata attributes
dynamic = ["version"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
]
# list package dependencies here
dependencies = [
"copylot @ git+https://github.com/czbiohub-sf/coPylot",
"ndtiff==2.2.1",
"nidaqmx",
"numpy<2",
"pycromanager==0.28.1",
"pydantic>=2.0.0",
"pylablib==1.4.1",
"tifffile",
"waveorder @ git+https://github.com/mehta-lab/waveorder@return_peak_stats",
]
[project.optional-dependencies]
# note that dev dependencies are only pinned to major versions
dev = [
"black==22.3.0",
"flake8~=5.0",
"isort~=5.12",
"pre-commit~=2.19",
"pylint~=2.14",
"pytest~=7.1",
]
build = ["build", "twine"]
[project.scripts]
mantis = "mantis.cli.main:cli"
[tool.setuptools]
# explicitly specify the package name
# TODO: is there a better way to do this?
packages = ["mantis"]
# allow use of __file__ to load data files included in the package
zip-safe = false
[tool.setuptools.dynamic]
version = { attr = "mantis.__version__" }
[tool.black]
line-length = 95
target-version = ['py310']
include = '\.pyi?$'
skip-string-normalization = true
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
| notebooks
| ignore
| examples
| scripts
)/
)
'''
[tool.isort]
profile = "black"
line_length = 95
lines_between_types = 1
default_section = "THIRDPARTY"
no_lines_before = ["STDLIB"]
ensure_newline_before_comments = true
skip_glob = ["examples/*", "scripts/*"]
[tool.pylint]
# disable all conventions, refactors, warnings (C, R, W) and the following:
# E0401: unable-to-import (since it is possible that no one environment has all required packages)
# E1136: unsubscriptable-object (anecdotal false positives for numpy objects)
disable = ["C", "R", "W", "import-error", "unsubscriptable-object"]
msg-template = "{line},{column},{category},{symbol}:{msg}"
reports = "n"
[tool.pytest.ini_options]
addopts = "--ignore scripts/"