-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
75 lines (67 loc) · 1.75 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
[tool.poetry]
name = "labelmerge"
version = "0.4.5"
description = "Snakebids app for merging multiple label maps."
authors = [
"Jason Kai <[email protected]>",
"Tristan Kuehn",
"Bradley Karat",
"Alaa Taha",
"Arun Thurairajah",
"Jonathan C. Lau",
"Ali R. Khan"
]
readme = "README.md"
packages = [
{ include = "labelmerge" }
]
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
snakebids = "^0.9.0"
nibabel = "^3.2.2"
numpy = "^1.22.3"
xarray = "^2022.11.0"
[tool.poetry.group.dev.dependencies]
flake8 = "4.0"
pytest-console-scripts = "1.2"
pytest = "^7.0.1"
black = "^22.1.0"
pylint = "^2.12.2"
isort = "^5.10.1"
poethepoet = "^0.13.1"
pre-commit = "^2.17.0"
snakefmt = "^0.6.1"
yamlfix = "^1.1.0"
mypy = "^0.991"
[tool.poetry.scripts]
labelmerge = 'labelmerge.run:main'
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
setup = "pre-commit install"
yamlfix = { shell = "find . -type f \\( -iname \\*.yaml -o -iname \\*.yml ! -iname snakemake* ! -iname snakebids* \\) -exec yamlfix {} \\;" }
yamlfix-check = { shell = "find . -type f \\( -iname \\*.yaml -o -iname \\*.yml ! -iname snakemake* ! -iname snakebids* \\) -exec yamlfix --check {} \\;" }
isort = "isort labelmerge"
isort-check = "isort -c labelmerge"
black = "black labelmerge"
black-check = "black --check labelmerge"
flake8 = "flake8 labelmerge"
snakefmt = "snakefmt labelmerge"
snakefmt-check = "snakefmt --check labelmerge"
quality = ["yamlfix", "isort", "black", "flake8", "snakefmt"]
quality-check = [
"yamlfix-check",
"isort-check",
"black-check",
"flake8",
"snakefmt-check",
]
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.black]
line-length = 79
[tool.snakefmt]
line_length = 79
include = '\.smk$|^Snakefile'