-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (87 loc) · 1.76 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (87 loc) · 1.76 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "biodata-cache"
description = "Caching and synchronization for AIND metadata."
license = {text = "MIT"}
requires-python = ">=3.10,<3.14"
authors = [
{name = "Allen Institute for Neural Dynamics"}
]
classifiers = [
"Programming Language :: Python :: 3"
]
readme = "README.md"
dynamic = ["version"]
dependencies = [
'duckdb',
'pyarrow',
'boto3',
'pandas>=2.2.0',
'semver',
]
[project.optional-dependencies]
sync = [
'aind-data-access-api[docdb]',
'aind-dynamic-foraging-database',
'zarr<3',
]
[dependency-groups]
dev = [
'biodata-cache[sync]',
'ruff',
'coverage',
'interrogate',
'pre-commit',
'pytest',
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = {attr = "biodata_cache.__version__"}
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = [
".git",
"__pycache__",
"build",
".venv",
"venv",
".conda",
".eggs",
".hg",
".mypy_cache",
".tox",
"_build",
"dist",
".gitignore"
]
# Choose what to enable: these roughly replace flake8, isort, etc.
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort rules
"B", # flake8-bugbear
"UP", # pyupgrade
]
lint.ignore = [
"E501", # line length (handled by formatter)
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
omit = ["*__init__*"]
source = ["biodata_cache", "tests"]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"^from .* import .*",
"^import .*",
"pragma: no cover"
]
fail_under = 100
[tool.interrogate]
exclude = ["setup.py", "docs", "build", ".conda"]
fail-under = 100