-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
100 lines (92 loc) · 2.19 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
[project]
name = "gym-softrobot"
version = "0.2.1"
description = "Soft-robotics control environment package for Gymnasium"
readme = "README.md"
keywords = []
authors = [
{name = "skim0119", email = "[email protected]"}
]
license = {text = "MIT"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
]
requires-python = ">=3.10"
dependencies = [
"gymnasium>=1.0.0",
"pyelastica>=0.3.2",
"matplotlib",
"tqdm",
"pyglet==1.5.31",
"vapory"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["gym_softrobot"]
[dependency-groups]
dev = [
"ruff",
"coverage",
"pre-commit",
"pytest",
"pytest-mock",
"pytest-cov",
"mypy",
]
docs = [
"sphinx",
"sphinx-book-theme",
"readthedocs-sphinx-search",
"sphinx-autodoc-typehints",
"myst-parser",
"numpydoc",
"docutils",
]
[tool.ruff]
line-length = 88
target-version = "py310"
lint.ignore = [
"E712", # Allow using if x == False, as it's not always equivalent to if x.
"E402", # Allow import statements to be non top-level.
"F841", # Allow unused variables, as they are often used for Brian2
]
lint.fixable = [
"F401", # Remove unused imports.
"NPY001", # Fix numpy types, which are removed in 1.24.
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Enable pragma
"pragma: no cover",
# Don't complain if non-runnable code isn't run:
"if 0:",
'if __name__ == "__main__":',
"pass",
"def __repr__",
"if TYPE_CHECKING:",
"raise AssertionError",
"raise NotImplementedError",
'''class '.*\bProtocol\)':''',
'class \w+\(Protocol\):',
"@(abc\\.)?abstractmethod",
]
fail_under = 40
show_missing = true
[tool.coverage.run]
branch = true
omit = [
"*/.local/*",
"setup.py",
]