-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
90 lines (77 loc) · 2.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
# --------------------------- BEGIN NOTES ---------------------------
####### TO FORMAT #######
# black --check .
# black .
####### TO TEST #######
# pytest
####### COVERAGE #######
# coverage run -m pytest; coverage report; coverage xml
####### PYLINT #######
# pylint cofi
# --------------------------- END NOTES ---------------------------
[build-system]
requires = ["setuptools>=42", "numpy", "versioningit"]
build-backend = "setuptools.build_meta"
[project]
name = "cofi"
description = "Common Framework for Inference"
authors = [{name = "InLab, CoFI development team"}]
readme = "README.md"
requires-python = ">=3.8"
keywords = ["inversion", "inference", "python package", "geoscience", "geophysics"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: BSD License",
]
dependencies = [
"numpy>=1.18",
"scipy>=1.0.0",
"emcee>=3.1.0",
"arviz>=0.9.0",
"findiff>=0.7.0",
"torch>=1.10",
"bayesbay>=0.3.0",
"neighpy>=0.1.5",
]
dynamic = ["version"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = "ignore:.*invalid escape sequence.*:DeprecationWarning"
[tool.coverage.run]
omit = ["*/lib*/*", "*/lib*"]
[tool.black]
line-length = 88
target_version = ['py38']
preview = true
exclude = '''
(
/(
\.git
| \.mypy_cache
| \.vscode
| build
| lib.*
| dist
| _skbuild
)/
| tests
)
'''
[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
[tool.versioningit.write]
file = "src/cofi/_version.py"