-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (62 loc) · 1.64 KB
/
pyproject.toml
File metadata and controls
72 lines (62 loc) · 1.64 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
[tool.poetry]
name = "autoafids"
version = "1.1.0"
description = "End-to-end SnakeBIDS workflow for landmark regression and derivative apps"
readme = "README.md"
license = "MIT"
authors = [
"Alaa Taha <ataha24@uwo.ca>"
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
snakebids = "0.14.0"
appdirs = "^1.4.4"
pulp = { version="<2.8.0", python = "<3.11" }
pyvista = "^0.44.2"
[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"
pygraphviz = "1.7"
Jinja2 = "^3.0.3"
[tool.poetry.scripts]
autoafids = "autoafids.run:app.run"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
setup = "pre-commit install"
ruff-lint = "ruff check --fix autoafids"
ruff-lint-check = "ruff check autoafids"
snakefmt = "snakefmt autoafids"
snakefmt-check = "snakefmt --check autoafids"
quality = ["yamlfix", "ruff-lint", "snakefmt"]
quality-check = ["yamlfix-check", "ruff-lint-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.ruff]
select = ["E", "W", "N", "RUF", "I", "UP"]
line-length = 79
builtins = ["snakemake"]
[tool.snakefmt]
line_length = 79
include = '\.smk$|^Snakefile'