forked from pynucastro/pynucastro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
138 lines (113 loc) · 3.16 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# pyproject.toml
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
# project metadata
[project]
name = "pynucastro"
description = "A python library for nuclear astrophysics"
readme = "README.md"
license.text = "BSD"
authors = [
{name="pynucastro development group"},
{email="michael.zingale@stonybrook.edu"},
]
dynamic = ["version"]
dependencies = [
"networkx",
"numpy",
"sympy",
"scipy",
"matplotlib",
"ipywidgets",
]
optional-dependencies.numba = ["numba"]
[project.urls]
Homepage = "https://github.com/pynucastro/pynucastro"
Documentation = "https://pynucastro.github.io/pynucastro/"
# packaging
[tool.setuptools]
zip-safe = false
# we explicitly list the data we want below
include-package-data = false
[tool.setuptools.packages.find]
include = ["pynucastro*"]
exclude = ["*.tests*"]
namespaces = false
[tool.setuptools.package-data]
# additional files to include when building a wheel
pynucastro = [
"library/*",
"library/tabular/*",
"library/tabular/suzuki/*",
"library/tabular/langanke/*",
"templates/**/*",
"nucdata/*",
"nucdata/AtomicMassEvaluation/*",
"nucdata/PartitionFunction/*",
]
[tool.setuptools_scm]
version_scheme = "post-release"
version_file = "pynucastro/_version.py"
# development tools
[tool.pylint.MAIN]
ignore = ['_python_reference', 'test_full_python_net.py']
extension-pkg-allow-list = ['mpi4py']
[tool.pylint."MESSAGES CONTROL"]
disable = [
"unspecified-encoding",
"line-too-long",
"wrong-import-order",
"too-many-branches",
"too-many-lines",
"too-many-statements",
"too-many-instance-attributes",
"too-many-arguments",
"too-many-locals",
"too-few-public-methods",
"invalid-name",
"consider-using-f-string",
"consider-using-with",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
]
enable = ["useless-suppression"]
[tool.pylint.CLASSES]
defining-attr-methods = [
"__init__",
"__new__",
"setUp",
"asyncSetUp",
"__post_init__",
"setup_class", "setup_method", # for tests
]
[tool.pylint.FORMAT]
max-line-length = 132
[tool.pylint.SIMILARITIES]
min-similarity-lines = 10
[tool.pylint.TYPECHECK]
generated-members = ["viridis", "bwr"]
# see https://github.com/PyCQA/pylint/issues/2289 for the generated-members
[tool.codespell]
skip = ".git,*docs/build,*.bib"
[tool.isort]
known_first_party = ["pynucastro"]
skip = ["pynucastro/networks/tests/_python_reference/network.py"]
[tool.pytest.ini_options]
# Example-Integrating-Network-diffeqpy.ipynb: needs Julia
# docs/source/*.ipynb: symlinks to notebooks we're already testing
# pynucastro/library/tabular/*/generate_*.ipynb: tabular rate file generation
# examples/rxn-network-integration.ipynb: very slow integration
addopts = """\
--ignore=docs/source/Example-Integrating-Network-diffeqpy.ipynb \
--ignore=docs/source/library-examples.ipynb \
--ignore=docs/source/pynucastro-examples.ipynb \
--ignore=docs/source/pynucastro-integration.ipynb \
--ignore-glob=pynucastro/library/tabular/*/generate_*.ipynb \
--ignore=examples/rxn-network-integration.ipynb \
--nbval-sanitize-with .github/workflows/nbval_sanitize.cfg \
"""
filterwarnings = [
"error",
]