-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
146 lines (128 loc) · 2.56 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
139
140
141
142
143
144
145
146
[project]
dynamic = ["version"]
name = "environment-framework"
license = "MIT"
license-files = { paths = ["LICENSE"] }
readme = "README.md"
description = "Loose building blocks to create agent-environment loops."
requires-python = ">=3.8"
authors = [
{ name = "Reto Barmettler"},
]
dependencies = [
"gymnasium>=0.26",
"numpy",
"pygame"
]
classifiers =[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
]
[project.urls]
Source = "https://github.com/crzdg/environment-framework"
[project.optional-dependencies]
extra = [
"opencv-python",
"sb3_contrib>=2.0.0a1",
"tqdm",
"jupyterlab",
"jupytext",
"ipywidgets",
]
dev = [
"hatch",
]
test = [
"pytest",
"pytest-mock",
"pytest-cov",
]
type = [
"mypy",
"types-PyYAML",
]
style = [
"black",
"isort",
]
lint = [
"pylint",
]
ci = [
"hatch",
"hatch-regex-commit",
"genbadge[all]",
]
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/environment_framework"
]
[tool.hatch]
version.source = "regex_commit"
version.path = "version.py"
version.tag_sign = false
[tool.hatch.envs.style]
features = [
"style"
]
scripts.check = [
"- black --check --diff src/",
"isort --check-only --diff src/"
]
scripts.fmt = [
"black src/",
"isort src/"
]
[tool.hatch.envs.lint]
features = [
"lint"
]
scripts.lint = "pylint --recursive=True src/"
[[tool.hatch.envs.lint.matrix]]
python = [
"311"
]
[tool.hatch.envs.type]
features = [
"type"
]
scripts.typing = "mypy src/ && mypy example/*.py"
[[tool.hatch.envs.type.matrix]]
python = [
"38", "39", "310", "311"
]
[tool.hatch.envs.test]
features = [
"test"
]
scripts.cov = "pytest --cov-report=term-missing --cov-report xml:.coverage.xml --cov-config=pyproject.toml --cov=environment_framework --junitxml=.junit.xml {args}"
scripts.no-cov = "cov --no-cov {args}"
[[tool.hatch.envs.test.matrix]]
python = [
"38", "39", "310", "311"
]
[tool.hatch.envs.tools]
scripts.update = "pip-compile {args} pyproject.toml"
dependencies = [
"pip-tools"
]
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120