-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
113 lines (102 loc) · 2.62 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
[project]
name = "soliket"
dynamic = ['version']
authors = [
{ name = "Simons Observatory" }
]
description = "Likelihood and Theory codes for the Simons Observatory."
readme = "README.rst"
requires-python = ">=3.9"
license = { text = "MIT" }
dependencies = [
"requests",
"numpy",
"scipy>=1.6",
"pandas", # to remove
"pytest-cov",
"astropy",
"cobaya",
"sacc",
"fgspectra >= 1.1.0",
"pyccl >= 3.0; platform_system!='Windows'",
"pyhalomodel",
"camb",
"getdist",
"syslibrary>=0.2.0",
"mflike>=1.0.0"
]
[project.urls]
Homepage = "https://github.com/simonsobs/SOLikeT/"
Documentation = "https://soliket.readthedocs.io/en/latest/"
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
include = [
"soliket",
"soliket.bandpass",
"soliket.bias",
"soliket.cash",
"soliket.ccl",
"soliket.clusters",
"soliket.cosmopower",
"soliket.cross_correlation",
"soliket.foreground",
"soliket.gaussian",
"soliket.halo_model",
"soliket.lensing",
"soliket.mflike",
"soliket.poisson",
"soliket.ps",
"soliket.xcorr",
]
[tool.setuptools.package-data]
"*" = ['*.yaml', '*.fits', '*.txt', '*.pkl', '*.gz']
[tool.setuptools_scm]
version_file = "soliket/_version.py"
[project.optional-dependencies]
all = [
"cosmopower",
"tensorflow_probability<0.22",
]
docs = [
"sphinx",
"sphinx_rtd_theme",
]
tests = [
"scikit-learn",
]
[tool.flake8]
select = ["E713", "E704", "E703", "E714", "E741", "E10", "E11", "E20", "E22", "E23", "E25", "E262", "E27", "E301", "E302", "E304", "E9", "F405", "F406", "F5", "F6", "F7", "F8", "E501", "W191", "F401", "W1", "W292", "W293", "W3"]
max-line-length = 90
exclude = [".tox", "build", "cobaya_packages", "test", ".eggs"]
[tool.coverage.run]
omit = [
"soliket/tests/*",
"soliket/*/tests/*",
"*/soliket/tests/*",
"*/soliket/*/tests/*",
]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about packages we have installed
"except ImportError",
"except ModuleNotFoundError",
# Don't complain if tests don't hit assertions
"raise AssertionError",
"raise NotImplementedError",
# Don't complain about script hooks
"def main\\(.*\\):",
# Ignore branches that don't pertain to this version of Python
"pragma: py{ignore_python_version}",
# Don't complain about IPython completion helper
"def _ipython_key_completions_",
]
[tool.pytest.ini_options]
markers = [
"require_ccl",
]