-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (103 loc) · 3.12 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[tool.poetry]
name = "pinefarm"
version = "0.0.0"
description = "Generate PineAPPL grids from PineCards."
authors = [
"Alessandro Candido <candido.ale@gmail.com>",
"Juan Cruz Martinez <juacrumar@lairen.eu>",
"Felix Hekhorn <felix.hekhorn@mi.infn.it>",
"Christopher Schwan <handgranaten-herbert@posteo.de>",
]
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
repository = "https://github.com/NNPDF/runcards"
packages = [{ include = "pinefarm", from = "src" }]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.1.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry.dependencies]
python = "^3.9"
click = "^8.0.1"
rich = "^12.5.1"
PyYAML = "^6.0.0"
pandas = ">1.4"
lz4 = "^4.0.2"
pkgconfig = "^1.5.5"
pygit2 = "^1.12.0"
requests = "^2.26.0"
lhapdf-management = "^0.3"
pineappl = "^0.8.2"
more-itertools = "^8.10.0"
appdirs = "^1.4.4"
tomli = "^2.0.1"
yadism = { extras = ["box"], version = "^0.13.5", optional=true, markers = "python_version < '3.13'" }
eko = { extras = ["box"], version = "^0.14.2", optional=true, markers = "python_version < '3.13'" }
[tool.poetry.extras]
dis = ["yadism"]
vrap = ["eko"]
constraints = ["dis", "vrap"] # integrability + positivity
complete = ["yadism", "eko"]
[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"
setuptools = "^75.0.0"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.1.3"
pytest-cov = "^4.0.0"
pylint = "^3.1.0"
[tool.poetry.scripts]
pinefarm = "pinefarm:command"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
dirty = true
[tool.poetry-dynamic-versioning.substitution]
files = ["pinefarm/__init__.py"]
[tool.poe.tasks]
test = "pytest"
coverage = "$BROWSER htmlcov/index.html"
test-cov = ["test", "coverage"]
lint = "pylint pinefarm -E"
lint-warnings = "pylint pinefarm --exit-zero"
ipy = "ipython"
test-mg5 = "pinefarm run TEST_RUN_SH theories/theory_213.yaml"
test-yad = "pinefarm run HERA_CC_318GEV_EM_SIGMARED theories/theory_213.yaml"
docs = { "shell" = "cd docs; make html" }
docs-server = { "shell" = "cd docs; make server" }
docs-view = { "shell" = "cd docs; make view" }
docs-clean = { "shell" = "cd docs; make clean" }
docs-cleanall = { "shell" = "cd docs; make cleanall" }
[tool.pytest.ini_options]
testpaths = ['tests/', 'benchmarks/']
python_files = ['test_*.py', 'benchmark_*.py']
python_classes = ['Test*', 'Benchmark*']
python_functions = ['test_*', 'benchmark_*']
addopts = [
'--cov=pinefarm',
'--cov-report=html',
'--cov-report=xml',
'--strict-markers',
]
[tool.pylint.master]
extension-pkg-whitelist = ["numpy", "lhapdf", "pygit2"]
ignore-paths = ["benchmarks/", "doc/", "tests/"]
[tool.pylint.messages_control]
disable = ["invalid-name", "fixme"]
[tool.pylint.reports]
output-format = "colorized"
[tool.pylint.format]
max-line-length = 100
[tool.pylint.design]
max-args = 10
[tool.pydocstyle]
add_ignore = ['D105', 'D107']