-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
62 lines (55 loc) · 1.69 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
[tool.poetry]
name = "labelmerge"
version = "0.4.7"
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.12"
snakebids = "^0.10.2"
nibabel = "^3.2.2"
numpy = "^1.22.3"
xarray = "^2022.11.0"
# Newer versions of pulp incompatible with snakebids
pulp = "<2.8.0"
[tool.poetry.group.dev.dependencies]
pytest-console-scripts = "1.2"
pytest = "^7.0.1"
poethepoet = "^0.13.1"
pre-commit = "^2.17.0"
snakefmt = "^0.6.1"
yamlfix = "^1.1.0"
mypy = "^0.991"
ruff = "^0.1.14"
[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 {} \\;" }
ruff-format = "ruff format labelmerge"
ruff-lint = "ruff --fix labelmerge"
ruff-lint-check = "ruff labelmerge"
snakefmt = "snakefmt labelmerge"
snakefmt-check = "snakefmt --check labelmerge"
quality = ["yamlfix", "ruff-format", "ruff-lint", "snakefmt"]
quality-check = ["yamlfix-check", "ruff-lint-check", "snakefmt-check"]
[tool.snakefmt]
line_length = 79
include = '\.smk$|^Snakefile'
[tool.ruff]
select = ["E", "W", "N", "RUF", "I", "UP"]
line-length = 79
builtins = ["snakemake"]