forked from thomas-schillaci/mbarc_atari
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (55 loc) · 1.27 KB
/
pyproject.toml
File metadata and controls
61 lines (55 loc) · 1.27 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
[project]
name = "mbarc-atari"
version = "0.1.0"
description = "Model-Based Aware Reward Classification (MBARC) for Atari 100k benchmark"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
dependencies = [
"torch>=2.1.0",
"torchvision>=0.16.0",
"gymnasium[atari,accept-rom-license]>=0.29.0",
"opencv-python>=4.8.0",
"numpy>=1.24.0",
"tqdm>=4.66.0",
"scipy>=1.11.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-timeout>=2.2.0",
"pytest-cov>=4.1.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
]
timeout = 600 # 10 minutes default timeout
[tool.coverage.run]
source = ["mbarc", "atari_utils"]
omit = [
"*/tests/*",
"*/test_*.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]