forked from int-brain-lab/iblapps
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (119 loc) · 2.7 KB
/
pyproject.toml
File metadata and controls
139 lines (119 loc) · 2.7 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "ibl-ephys-alignment-gui"
description = "Tool for aligning electrophysiological features to anatomical landmarks."
license = { text = "MIT" }
requires-python = ">=3.9"
authors = [{ name = "International Brain Laboratory" }]
classifiers = ["Programming Language :: Python :: 3"]
readme = "README.md"
dependencies = [
"aind-data-schema<2.0",
"aind-data-access-api",
"aind-qcportal-schema",
"aind-registration-utils",
"antspyx",
"aws-requests-auth",
"iblatlas",
"iblutil",
"nibabel",
"PyQt5",
"pyqtgraph",
"SimpleITK",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = ['black', 'coverage', 'flake8', 'interrogate', 'isort']
[project.scripts]
launch = 'ephys_alignment_gui.launch_gui:main'
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = { attr = "ephys_alignment_gui.__version__" }
[tool.black]
line-length = 88
target_version = ['py39']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
| .gitignore
)
'''
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
extend-select = ["Q", "RUF100", "C90", "I", "F", "E", "W", "UP", "ANN", "PYI"]
extend-ignore = ["ANN401"]
per-file-ignores = { "tests/*.py" = [
"ANN",
], "docs/**/*.py" = [
"ANN",
], "notebooks/*.py" = [
"ANN",
] }
mccabe = { max-complexity = 14 }
pydocstyle = { convention = "numpy" }
[tool.codespell]
skip = '.git,*.pdf,*.svg,./bonsai,*.bonsai,./docs/_build,uv.lock,./doc_template,./docs/build'
ignore-words-list = "nd"
[tool.coverage.run]
omit = ["*__init__*"]
source = ["ephys_alignment_gui", "tests"]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"from",
"import",
"pragma: no cover",
]
fail_under = 100
[tool.isort]
line_length = 88
profile = "black"
[tool.interrogate]
ignore-init-method = true
ignore-magic = true
ignore_module = true
fail-under = 30
exclude = [
"__init__.py",
"tests",
"docs",
"build",
"setup.py",
"examples",
"site",
]
[tool.mypy]
files = ["src/ibl_ephys_alignment_gui"]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false