-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
82 lines (72 loc) · 1.86 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
[tool.poetry]
name = "autoafids-prep"
version = "0.1.0"
description = "Snakebids workflow to prep data for autoafids project"
authors = ["Alaa Taha <[email protected]>"]
readme = "README.md"
packages = [{include = "autoafids_prep"}]
[tool.poetry.dependencies]
python = ">=3.8, <3.12"
# Scipy fix for Snakebids version conflicts
scipy = [
{ version="<1.11", python = "<3.9" },
{ version=">=1.11", python = ">=3.9" },
]
snakebids = "^0.8.1"
numpy = [
{ version="<1.25", python = "<3.9" },
{ version=">1.25", python = ">=3.9" },
]
pandas = "^2.0.3"
nilearn = "^0.10.3"
antspyx = "^0.5.3"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
isort = "^5.12.0"
poethepoet = "^0.21.1"
ruff = "^0.0.282"
snakefmt = "^0.8.4"
yamlfix = "^1.11.0"
[tool.poetry.scripts]
autoafids_prep = 'autoafids_prep.run:main'
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
isort = "isort autoafids_prep"
isort-check = "isort -c autoafids_prep"
black = "black autoafids_prep"
black-check = "black --check autoafids_prep"
ruff = "ruff --fix autoafids_prep"
ruff-check = "ruff autoafids_prep"
snakefmt = "snakefmt autoafids_prep"
snakefmt-check = "snakefmt --check autoafids_prep"
quality = ["yamlfix", "isort", "black", "ruff", "snakefmt"]
quality-check = [
"yamlfix-check",
"isort-check",
"black-check",
"ruff-check",
"snakefmt-check",
]
[tool.poe.tasks.yamlfix]
shell = """
find . -type f \\( \
-iname \\*.yaml -o -iname \\*.yml ! -iname snakemake* \
! -iname snakebids* \
\\) -exec yamlfix {} \\;
"""
[tool.poe.tasks.yamlfix-check]
shell = """
find . -type f \\( \
-iname \\*.yaml -o -iname \\*.yml ! -iname snakemake* \
! -iname snakebids* \
\\) -exec yamlfix --check {} \\;
"""
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.ruff]
builtins = [ "snakemake" ]
[tool.snakefmt]
include = '\.smk$|^Snakefile'