-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
166 lines (152 loc) · 3.88 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
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
156
157
158
159
160
161
162
163
164
165
166
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=65", "wheel", "setuptools_scm[toml]>=3.4"]
[tool.setuptools_scm]
write_to = "flyvision/version.py"
[tool.setuptools]
include-package-data = true
[project]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Adaptive Technologies",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
"""License :: OSI Approved :: MIT License""",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
]
dependencies = [
"ipython",
"numba==0.55.2",
"datamate",
"scipy",
"matplotlib==3.7.1",
"networkx",
"scikit-learn==1.1.1",
"umap-learn==0.5.3",
"ffmpeg-python",
"pytest",
"torch",
"torchvision",
"python-dotenv",
"hydra-core",
"toolz",
"tqdm",
"requests",
"google-api-python-client",
"xarray==2023.7.0",
"pandas==2.2.2",
"joblib==1.3.2",
]
description = "Connectome and task-constrained vision models of the fruit fly."
dynamic = ["version"]
name = "flyvision"
readme = "README.md"
requires-python = ">=3.6"
[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"pytest",
"jupyter",
"papermill",
"tabulate",
"tqdm",
"ipywidgets",
]
docs = [
"mkdocs",
"mkdocs-material",
"markdown-include",
"mkdocs-redirects",
"mkdocstrings[python] >= 0.18",
"nbconvert",
"mike",
"mkdocs-macros-plugin",
"jupyter",
"tabulate",
"tqdm",
"ipywidgets",
]
examples = ["jupyter", "tabulate", "tqdm", "ipywidgets"]
no-version-pins = [
"numba",
"matplotlib",
"scikit-learn",
"umap-learn",
"xarray",
"pandas",
"joblib",
]
# Package installation configuration
[tool.setuptools.packages.find]
exclude = [] # exclude packages matching these glob patterns (empty by default)
include = [
"flyvision*",
"flyvis*",
] # package names should match these glob patterns (["*"] by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
where = ["."] # list of folders that contain the packages (["."] by default)
# ruff configs
[tool.ruff]
extend-include = []
line-length = 90
[tool.ruff.lint]
# pycodestyle, Pyflakes, pyupgrade, flake8-bugbear, flake8-simplify, isort
ignore = [
"E731", # allow naming lambda functions.
"B006", # allow mutable default arguments.
"B008", # allow function calls in default args.
"F841", # allow unused variables.
]
select = ["E", "F", "W", "B", "SIM", "I"]
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = [
"I001",
"E402",
"F401",
"F403",
] # allow unused imports and undefined names
"test_*.py" = ["F403", "F405"]
# [tool.ruff.lint.isort]
# case-sensitive = true
# lines-between-types = 0 # like isort default.
# relative-imports-order = "furthest-to-closest" # like isort default.
# known-first-party = ["flyvision", "tests", "examples", "scripts"]
[tool.ruff.format]
# exclude = ["*.ipynb"]
preview = true
quote-style = "preserve"
[tool.pylint."MESSAGES CONTROL"]
disable = """"""
# Pytest configuration
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests that require a gpu (deselect with '-m \"not gpu\"')",
"require_large_download: tests that require large data downloads (deselect with '-m \"not require_large_download\"')",
"require_download: tests that require data downloads (deselect with '-m \"not require_download\"')",
]
testpaths = ["tests"]
# Pyright configuration
[tool.pyright]
exclude = [
"**/__pycache__",
"**/__node_modules__",
".git",
"docs",
".fonts",
".ruff_cache",
"config",
"data",
"images",
]
ignore = []
include = ["flyvision", "scripts", "tests", "examples"]
python_version = "3.x"
reportUnsupportedDunderAll = false