-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (121 loc) · 3.35 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (121 loc) · 3.35 KB
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
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "muscle3"
dynamic = ["version"]
description = "Version 3 of the MUltiScale Coupling Library and Environment"
readme = "README.rst"
authors = [
{name = "Lourens Veen", email = "l.veen@esciencecenter.nl"},
{name = "Maarten Sebregts", email = "msebregts@ignitioncomputing.com"},
{name = "Iris van der Werf", email = "ivanderwerf@ignitioncomputing.com"},
]
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
keywords = ["multiscale", "coupling", "MUSCLE"]
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.9, <4"
dependencies = [
"click>=7.1,<9",
"matplotlib>=3,<4",
"msgpack>=1,<2",
"psutil>=5.0.0",
"parsimonious",
"pytest",
"typing_extensions~=4.6",
"numpy>=1.22",
"ymmsl>=0.17.0,<0.18", # Also in examples requirements.txt
# "ymmsl @ git+https://github.com/multiscale/ymmsl-python.git@develop",
"yatiml>=0.12,<0.13",
]
[project.optional-dependencies]
dev = ["tox"]
[project.urls]
homepage = "https://github.com/multiscale/muscle3"
documentation = "https://muscle3.readthedocs.io/"
[project.scripts]
muscle_manager = "muscle3.muscle_manager:manage_simulation"
muscle3 = "muscle3.muscle3:muscle3"
[project.entry-points."pytest11"]
muscle3 = "libmuscle.pytest"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = [".", "libmuscle/python"]
include = ["muscle3", "libmuscle", "libmuscle.*"]
namespaces = false # Prevent setuptools from marking /libmuscle as a namespace package
[tool.setuptools.dynamic]
version = {file = "VERSION"}
[tool.coverage.run]
source = [
"libmuscle/python/libmuscle",
"integration_test",
]
[tool.coverage.xml]
output = "cobertura.xml"
[tool.pytest.ini_options]
testpaths = ["libmuscle/python/libmuscle", "integration_test"]
addopts = "--cov --cov-report xml --cov-report term-missing -s --import-mode importlib"
pythonpath = "."
filterwarnings = [
# raise an error when there are unhandled exceptions in a worker thread
"error::pytest.PytestUnhandledThreadExceptionWarning",
]
[tool.mypy]
files = ["libmuscle/python/**/*.py", "scripts/*.py", "muscle3/*.py"]
mypy_path = "libmuscle/python"
warn_unused_configs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_return_any = true
[[tool.mypy.overrides]]
# We don't bother with type annotations for tests
module = ["*.test.*"]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"msgpack",
"yaml.*",
]
ignore_missing_imports = true
[tool.ruff]
exclude = [
"docs",
".git",
]
# Same as Black
indent-width = 4
line-length = 88
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# isort
"I",
# TODO: enable these at some point?
# flake8-simplify
#"SIM",
]