-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
183 lines (153 loc) · 4.11 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cogment_lab"
dynamic = ["version"]
readme = "README.md"
license = "Apache-2.0"
keywords = ["Reinforcement Learning", "RL", "AI", "human-in-the-loop", "HILL"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
dependencies = [
"cogment[generate]>=2.10.1,<3.0.0",
"grpcio>=1.48",
"grpcio-tools>=1.48",
"PyYAML>=5.0",
"starlette>=0.21.0",
"uvicorn[standard]>=0.17.6",
"Gymnasium[classic_control]~=0.29",
"PettingZoo~=1.23.1",
"numpy",
"fastapi>=0.103",
"pillow>=9.0",
"tqdm",
"jinja2>=3.1"
]
[project.scripts]
cogmentlab = "cogment_lab.cli.cli:main"
[tool.hatch.version]
path = "cogment_lab/version.py"
[tool.hatch.build.targets.sdist]
include = ["/cogment_lab"]
# Package ######################################################################
[project.optional-dependencies]
# Update dependencies in `all` if any are added or removed
all = [
"pytest >=7.1.3",
"pytest-asyncio",
"coltra>=0.2.1",
"torch",
"matplotlib",
"wandb>=0.13.9",
"hatch>=1.7.0",
"ruff>=0.1.7",
"jupyter>=1.0.0",
"jupyterlab>=3.5.3",
]
dev = [
"pytest>=7.1.3",
"pytest-asyncio",
"ruff>=0.1.7",
"hatch>=1.7.0"
]
coltra = ["coltra>=0.2.1", "torch", "wandb>=0.13.9"]
[project.urls]
Homepage = "https://cogment.ai/lab"
Repository = "https://github.com/cogment/cogment-lab"
Documentation = "https://cogment.ai/lab"
"Bug Report" = "https://github.com/cogment/cogment-lab/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["cogment_lab", "cogment_lab.*"]
[tool.setuptools.package-data]
cogment_lab = ["py.typed"]
[tool.setuptools.dynamic.version]
attr = "cogment_lab.version.__version__"
# Linters and Test tools #######################################################
[tool.black]
safe = true
[tool.isort]
atomic = true
profile = "black"
src_paths = ["cogment_lab", "tests", "docs/scripts"]
extra_standard_library = ["typing_extensions"]
indent = 4
lines_after_imports = 2
multi_line_output = 3
[tool.pyright]
include = ["cogment_lab/**", "tests/**"]
exclude = ["**/node_modules", "**/__pycache__", "cogment_lab/generated/*.py"]
strict = []
typeCheckingMode = "basic"
pythonVersion = "3.10"
pythonPlatform = "All"
enableTypeIgnoreComments = true
reportMissingImports = "none"
reportMissingTypeStubs = false
reportInvalidTypeVarUse = "none"
reportMissingModuleSource = "none"
reportPrivateUsage = "warning"
reportUnboundVariable = "warning"
[tool.pytest.ini_options]
filterwarnings = []
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"scripts",
"cogment_lab/generated",
"**/__init__.py",
]
# Same as Black.
line-length = 120
indent-width = 4
# Assume Python 3.8
target-version = "py38"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"