-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
108 lines (95 loc) · 2.5 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
[tool.poetry]
name = "rombus"
version = "0.0.0-dev"
description = "Reduced order modeling for the masses"
authors = [
"Gregory Poole <gbpoole@gmail.com>",
"J. Hu <jitinghu@swin.edu.au>",
]
license = "MIT-expat"
readme = "README.md"
packages = [
{ include = "rombus", from = "python" }
]
homepage = "https://github.com/ADACS-Australia/rombus"
documentation = "https://rombus.readthedocs.io/en/latest/"
[tool.poetry.dependencies]
python = " >=3.11"
scipy = "^1.9.3"
mpi4py = "^3.1.4"
h5py = "^3.8.0"
six = "^1.16.0"
matplotlib = "^3.6.2"
click = "^8.1.3"
rich = "^13.3.3"
Sphinx = { version = "^6.1.3", optional = true }
sphinx-rtd-theme = { version = "1.2.0", optional = true }
myst-parser = { version = "^1.0.0", optional = true }
pre-commit = { version = "^3.0.4", optional = true }
pytest = { version = "^7.0", optional = true }
pytest-cov = { version = "^4.1.0", optional = true }
black = { version = "^22.10.0", optional = true }
ruff = { version = "^0.0.243", optional = true}
sphinx-click = { version = "^4.4.0", optional = true }
mypy = { version = "^1.1.1", optional = true }
sphinx-copybutton = { version = "^0.5.1", optional = true }
[tool.poetry.extras]
docs = [
"Sphinx",
"sphinx-rtd-theme",
"myst-parser",
"sphinx-click",
"sphinx-copybutton",
]
dev = ["pre-commit",
"pytest",
"pytest-cov",
"mypy",
"black",
"ruff",
]
[tool.poetry.scripts]
rombus = "rombus.cli:cli"
[tool.pytest.ini_options]
addopts = "--cov"
markers = [ "lalsuite: Tests that require LALSuite to be installed" ]
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.mypy]
ignore_missing_imports = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/python"
[tool.coverage.paths]
source = ["python"]
[tool.coverage.run]
branch = true
source = ["python"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:"
]
[tool.ruff]
line-length = 88 # to match Black
select = [
"E",
"F",
"W",
]
ignore = [
"E501", # line length violations (let Black handle this)
]
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402"]
[tool.ruff.pydocstyle]
convention = "numpy"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"