-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
105 lines (88 loc) · 2.1 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
[project]
name = "emote-rl"
version = "23.0.0"
description = "A modular reinforcement learning library"
authors = [
{name = "Embark Studios", email = "[email protected]"},
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
dependencies = [
"tensorboard>=2.8.0",
"setuptools==59.5",
"psutil>=5.8.0",
"onnx>=1.10",
]
[project.optional-dependencies]
torch = ["torch==1.11.0"]
atari = [
"gymnasium>=0.27.1",
"box2d-py>=2.3.5",
"pygame>=2.1.0"
]
ci = ["gsutil>=4.66", "emote-rl[atari]"]
[tool.pdm.dev-dependencies]
tools = [
"pytest~=6.0",
"black~=22.1",
"bandit~=1.7",
"isort~=5.10",
]
docs = [
"Sphinx~=4.4",
"sphinxcontrib-apidoc~=0.3",
"sphinx-autodoc-typehints~=1.17",
"sphinx-rtd-theme~=1.0.0",
"myst-parser~=0.18.0"
]
[tool.pdm.scripts]
post_install = "pdm plugin add pdm-plugin-torch==23.0.0"
post_lock = "pdm torch lock"
docs = "bash -c 'cd docs && rm -rf _build/dirhtml/ && make dirhtml'"
docs-serve = "python -m http.server --directory docs/_build/dirhtml"
[[tool.pdm.source]]
type = "index"
url = "https://download.pytorch.org/whl/cpu/"
name = "torch"
[tool.pdm.resolution]
respect-source-order = false
[tool.pdm.plugins.torch]
dependencies = [
"torch==1.11.0"
]
lockfile = "torch.lock"
enable-cpu = true
enable-rocm = true
rocm-versions = ["4.5.2"]
enable-cuda = true
cuda-versions = ["cu115"]
[project.urls]
repository = "https://github.com/EmbarkStudios/emote"
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.pytest.ini_options]
minversion = "6.0"
log_cli = true
#log_cli_level = "INFO" # Useful when debugging locally
log_format = "%(asctime)s:\t%(message)s"
log_date_format = "%H:%M:%S"
[tool.isort]
py_version = 39
profile = "black"
combine_as_imports = true
lines_between_types = 1
lines_after_imports = 2
src_paths = ["emote"]
known_first_party = ["emote"]
[tool.black]
target-version = ['py39']
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
files = "src"