Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (64 loc) · 2.16 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (64 loc) · 2.16 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
62
63
64
65
66
67
68
69
70
71
72
73
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "statrl"
version = "1.260918"
description = "The Statistical Reinforcement Learning Toolkit Library"
authors = [{ name = "Odalric-Ambrym Maillard", email = "odalricambrym.maillard@inria.fr" }]
readme = "README.md"
license = { text = "MIT" }
classifiers = ["License :: OSI Approved :: MIT License"]
requires-python = ">=3.14"
dependencies = [
"gymnasium>=1.0",
"numpy>=2.5",
"joblib>=1.5",
"matplotlib>=3.9",
"scipy>=1.17",
"pyyaml>=6.0",
]
[project.optional-dependencies]
test = ["pytest"]
lint = ["ruff", "mypy"]
[project.urls]
Homepage = "https://github.com/StatisticalRL/statrl"
Repository = "https://github.com/StatisticalRL/statrl"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
[tool.mypy]
files = ["src"]
# Newer numpy stubs use PEP 695 `type` aliases, which need python_version >=
# 3.12 to parse, even though the package itself still targets
# requires-python = ">=3.9".
python_version = "3.12"
# gymnasium/scipy/joblib lack stubs, so don't error on their missing imports.
ignore_missing_imports = true
[tool.ruff]
# src layout, so ruff resolves `settings`/`experiments` as first-party.
src = ["src"]
# target-version is inferred from project.requires-python.
#packages = [
# "statrl",
# "statrl.experiments",
# "statrl.settings",
# "statrl.settings.bandits",
# "statrl.settings.bandits.stochastic",
# "statrl.settings.bandits.stochastic.anytime",
# "statrl.settings.bandits.stochastic.anytime.agents",
# "statrl.settings.bandits.stochastic.knownhorizon",
# "statrl.settings.bandits.stochastic.knownhorizon.wrappers",
# "statrl.settings.bandits.adversarial",
# "statrl.settings.bandits.adversarial.lipschitz",
# "statrl.settings.bandits.adversarial.lipschitz.agents",
#]
[tool.ruff.lint]
# Pinned explicitly: ruff's own default rule set has grown well past this
# selection in recent releases, and this project only wants pyflakes (F) plus
# the pycodestyle error subset (E4/E7/E9).
select = ["E4", "E7", "E9", "F"]