-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
126 lines (109 loc) · 2.96 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[project]
name = "plenoptic"
dynamic = ["version"]
authors = [{name="Plenoptic authors"}]
description = "Python library for model-based stimulus synthesis."
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
]
keywords = ['neuroscience', 'pytorch', 'visual information processing', 'machine learning', 'explainability', 'computational models']
dependencies = [
"numpy>=1.1",
"torch>=1.8,!=1.12.0",
"pyrtools>=1.0.1",
"scipy>=1.0",
"matplotlib>=3.3",
"tqdm>=4.29",
"imageio>=2.5",
"scikit-image>=0.15.0",
"einops>=0.3.0",
"importlib-resources>=6.0",
"Deprecated",
]
[build-system]
requires = ["setuptools", "setuptools-scm[toml]"]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
docs = [
'sphinx',
# fix sphinx 7 incompatibility issue
'sphinx_rtd_theme>=1.3.0rc1',
'numpydoc',
'nbsphinx',
'nbsphinx_link',
'sphinxcontrib-apidoc',
'sphinx-autodoc-typehints',
# because of this issue:
# https://nbsphinx.readthedocs.io/en/0.6.0/installation.html#Pygments-Lexer-for-Syntax-Highlighting
'ipython',
'sphinx-copybutton',
'sphinxemoji',
'sphinx-inline-tabs',
'docutils>=0.18.1,<0.21',
]
dev = [
"pytest>=5.1.2",
'pytest-cov',
'pytest-xdist',
"pooch>=1.2.0",
"ruff>=0.6.8",
]
nb = [
'jupyter',
'ipywidgets',
'nbclient>=0.5.5',
"torchvision>=0.3",
"pooch>=1.2.0",
]
[project.urls]
"Homepage" = "https://github.com/plenoptic-org/plenoptic"
"Documentation" = "https://docs.plenoptic.org"
"Download" = "https://zenodo.org/doi/10.5281/zenodo.10151130"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
write_to = "src/plenoptic/version.py"
version_scheme = 'python-simplified-semver'
local_scheme = 'no-local-version'
[tool.pytest.ini_options]
addopts = "--cov=plenoptic -n auto"
testpaths = ["tests"]
[tool.ruff]
extend-include = ["*.ipynb"]
src = ["src", "tests", "examples"]
# Exclude a variety of commonly ignored directories.
exclude = []
# Set the maximum line length (same as Black)
line-length = 88
indent-width = 4 # same as Black
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes: basic static analysis for common errors like undefined names
# and missing imports.
"F",
# pyupgrade
"UP",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = []