-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
103 lines (94 loc) · 2.35 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
[project]
name = "pz-rail"
requires-python = ">=3.9"
license = {file = "LICENSE"}
readme = "README.md"
authors = [
{ name = "LSST Dark Energy Science Collaboration (DESC)", email = "later@later.com" }
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
]
dynamic = ["version"]
dependencies = [
"pz-rail-base",
]
# On a mac, install optional dependencies with `pip install '.[dev]'` (include the single quotes)
[project.optional-dependencies]
algos = [
"pz-rail-astro-tools",
"pz-rail-bpz",
"pz-rail-cmnn",
"pz-rail-dsps",
"pz-rail-flexzboost",
"pz-rail-fsps",
"pz-rail-gpz-v1",
"pz-rail-pzflow",
"pz-rail-sklearn",
"pz-rail-som",
"qp-prob[full]",
]
nb = [
"pz-rail[algos]",
"jupyter",
"seaborn",
]
dev = [
"pz-rail[algos]",
"jupyter",
"seaborn",
"corner",
"pandas",
"h5py",
"matplotlib",
"coverage",
"pytest",
"pytest-cov", # Used to report total code coverage
"pre-commit", # Used to run checks before finalizing a git commit
"pylint", # Used for static linting of files
]
docs = [
"nbsphinx",
"sphinx==6.1.3", # Used to automatically generate documentation
"sphinx_rtd_theme==1.2.0", # Used to render documentation
"sphinx-autoapi==2.0.1", # Used to automatically generate api documentation
"sphinx-tabs", # Used to create tabbed content within the docs
]
[build-system]
requires = [
"setuptools>=62", # Used to build and package the Python project
"setuptools_scm>=6.2", # Gets release version from git. Makes it available programmatically
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/rail/hub/_version.py"
[tool.pytest.ini_options]
testpaths = [
"tests",
]
addopts = [
"--cov=rail",
"--cov-report=html"
]
[tool.pylint]
disable = [
"abstract-method",
"invalid-name",
"too-many-statements",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"too-few-public-methods",
"duplicate-code",
"use-dict-literal",
"broad-exception-caught",
]
max-line-length = 110
max-locals = 50
max-branches = 25
max-public-methods = 50