-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
107 lines (95 loc) · 2.67 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "banana-hep"
version = "0.0.0"
description = "Benchmark QCD physics"
readme = "README.md"
authors = [
"Andrea Barontini <[email protected]>",
"Alessandro Candido <[email protected]>",
"Felix Hekhorn <[email protected]>",
"Niccolò Laurenti <[email protected]>",
"Giacomo Magni <[email protected]>",
]
repository = "https://github.com/N3PDF/banana"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
]
include = ["src/banana/data/theory_template.yaml"]
packages = [{ include = "banana", from = "src" }]
[tool.poetry.dependencies]
python = "^3.9.0,<3.13"
ipython = "^8.1.0"
SQLAlchemy = "^1.4.29"
numpy = "^1.26.0"
pandas = "^2.1.4"
matplotlib = "^3.5.1"
rich = "^12.4.4"
PyYAML = "^6.0"
click = "^8.0.3"
pendulum = "^3.0.0"
appdirs = "^1.4.4"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
Sphinx = "^7.0.0"
sphinx-rtd-theme = "^1.0.0"
sphinxcontrib-bibtex = "^2.4.1"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.1.3"
pytest-cov = "4.0.0"
pylint = "^3.1.0"
pyfakefs = "^5.2.3"
scipy = "^1.11.1"
[tool.poetry.group.dev.dependencies]
pdbpp = "^0.10.3"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
dirty = true
[tool.poetry-dynamic-versioning.substitution]
files = ["src/banana/__init__.py"]
[tool.poe.tasks]
coverage = "$BROWSER htmlcov/index.html"
test = "pytest tests"
test-cov = ["test", "coverage"]
lint = "pylint src/**/*.py -E"
lint-warnings = "pylint src/**/*.py --exit-zero"
docs = { "shell" = "cd docs; make html" }
docs-view = { "shell" = "cd docs; make view" }
docs-server = { "shell" = "cd docs; make server" }
docs-clean = { "shell" = "cd docs; make clean" }
docs-cleanall = { "shell" = "cd docs; make cleanall" }
[tool.pytest.ini_options]
addopts = [
'--cov=banana',
'--cov-report=html',
'--cov-report=xml',
'--strict-markers',
]
[tool.pylint.master]
# extensions not to check
extension-pkg-whitelist = ["numpy", "lhapdf"]
ignore-paths = ["benchmarks/", "docs/", "tests/"]
# has to be 1 as pylint is NOT threadsafe
jobs = 1
[tool.pylint.messages_control]
disable = ["invalid-name", "fixme"]
[tool.pylint.reports]
# Available formats are:
# text, parseable, colorized, json and msvs (visual studio).
output-format = "colorized"
[tool.pylint.format]
# Maximum number of characters on a single line.
max-line-length = 100
[tool.pylint.design]
# Maximum number of arguments for function / method
max-args = 10