forked from amygutierrez/regression_dashboard
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
91 lines (77 loc) · 2.37 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
[tool.poetry]
name = "cpac_regression_dashboard"
version = "1.0.0.dev1"
description = "Generate a dashboard for C-PAC regression tests"
authors = [
"Amy Gutierrez <[email protected]>",
"Jon Clucas <[email protected]"
]
license = "LGPL-2.1"
readme = "README.md"
packages = [{from = "src", include = "cpac_regression_dashboard"}]
[tool.poetry.dependencies]
python = ">=3.9"
cairosvg = "*"
gitpython = "*"
PyGithub = "*"
playwright = "*"
cpac-correlations = {git = "https://github.com/FCP-INDI/CPAC_regtest_pack.git", subdirectory = "cpac_correlations", branch = "correlate_from_python"}
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
mypy = "^1.7.1"
pre-commit = "^3.5.0"
pytest-cov = "^4.1.0"
ruff = "^0.1.7"
[tool.poetry.scripts]
cpac_regsuite_correlate = 'cpac_regression_dashboard.calculate_correlations:main'
cpac_regsuite_create_yaml = 'cpac_regression_dashboard.create_yml:main'
cpac_regsuite_create_yml = 'cpac_regression_dashboard.create_yml:main'
cpac_regsuite_generate_comment = 'cpac_regression_dashboard.generate_comment:main'
"cpac-regsuite-generate-comment" = 'cpac_regression_dashboard.generate_comment:main'
[tool.poetry.urls]
"Source Code" = "https://github.com/FCP-INDI/C-PAC_regression_dashboard"
[tool.pytest.ini_options]
pythonpath = [
"src"
]
[tool.ruff]
extend-select = ["A", "C4", "D", "G", "I", "ICN", "NPY", "PL", "RET", "RSE", "RUF", "Q", "W"]
line-length = 88
indent-width = 4
src = ["src"]
target-version = "py39"
[tool.ruff.lint]
select = ["ANN", "D", "E", "F", "I", "Q"]
ignore = [
"ANN101", # self should not be annotated.
"ANN102" # cls should not be annotated.
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["cpac-correlations"]
no-lines-before = ["local-folder"]
order-by-type = false
[tool.ruff.lint.pylint]
max-args = 10
max-branches = 50
max-returns = 12
max-statements = 100
[tool.ruff.lint.pyupgrade]
# Until variants Python ≥ 3.10
keep-runtime-typing = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"tests/**/*.py" = []
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"