-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
92 lines (80 loc) · 2.03 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
[tool.poetry]
name = "afids-utils"
version = "0.2.0"
description = "Utility functions for working with AFIDs data / workflows"
authors = ["Jason Kai <tkai@uwo.ca>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "afids_utils" }]
exclude = ["afids_utils/tests"]
[tool.poetry.dependencies]
python = ">=3.8, <3.12"
attrs = ">=23.1.0"
numpy = ">=1.24.3"
nilearn = { version = ">=0.10.1", extras = ["plotting"], optional = true }
plotly = { version = ">=5.16.1", optional = true }
[tool.poetry.extras]
plotting = ["nilearn", "plotly"]
[tool.poetry.group.dev.dependencies]
black = ">=23.3.0"
ruff = ">=0.0.270"
isort = ">=5.12.0"
poethepoet = ">=0.20.0"
yamlfix = ">=1.10.0"
pytest = ">=7.3.1"
hypothesis = { extras = ["numpy"], version = ">=6.77.0" }
pytest-cov = ">=4.1.0"
more-itertools = ">=10.1.0"
pyright = ">=1.1.327"
pytest-xdist = ">=3.3.1"
pytest-split = ">=0.8.1"
pre-commit = "^3.5.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
setup = "pre-commit install"
isort = "isort afids_utils"
isort-check = "isort -c afids_utils"
black = "black afids_utils"
black-check = "black --check afids_utils"
ruff = "ruff --fix afids_utils"
ruff-check = "ruff afids_utils"
pyright = "pyright afids_utils"
quality = ["yamlfix", "ruff", "isort", "black"]
quality-check = [
"yamlfix-check",
"ruff-check",
"isort-check",
"black-check",
"pyright",
]
test = "pytest -n auto --store-durations --doctest-modules afids_utils/tests"
[tool.coverage]
omit = "afids_utils/tests/*"
fail_under = 90
precision = 2
show_missing = true
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 79
[tool.black]
line-length = 79
[tool.ruff]
line-length = 79
[tool.pyright]
typeCheckingMode = "strict"
reportPrivateUsage = false
[tool.poe.tasks.yamlfix]
shell = """
find . -type f \\( \
-iname \\*.yaml -o -iname \\*.yml \
\\) -exec yamlfix {} \\;
"""
[tool.poe.tasks.yamlfix-check]
shell = """
find . -type f \\( \
-iname \\*.yaml -o -iname \\*.yml \
\\) -exec yamlfix --check {} \\;
"""