-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
136 lines (112 loc) · 3.53 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.ruff.format]
exclude = ["third_party"]
[tool.ruff]
line-length = 127
target-version = "py311"
exclude = ["third_party"]
[tool.ruff.isort]
known-third-party = ["wandb"]
[tool.ruff.lint]
# Enable the isort rules.
extend-select = ["I"]
[tool.pytest.ini_options]
testpaths = ["tests"] # ignore third_party dir for now
[tool.pyright]
exclude = [
"learned_planner/notebooks/create_hard_reward.py",
"learned_planner/notebooks/plot_planning.py",
"plot/**",
"alternative-levels/**",
"wandb/**", # Saved old codes
"third_party/**", # Other libraries
"build/**", # build directory for strict editable install
]
strictListInference = true
strictSetInference = true
strictDictionaryInference = true
reportIncompatibleMethodOverride = "error"
reportMatchNotExhaustive = "error"
reportOverlappingOverload = "error"
reportMissingSuperCall = "error"
reportInvalidStringEscapeSequence = "error"
reportPropertyTypeMismatch = "error"
reportUnusedImport = "warning"
reportImportCycles = "warning"
reportPrivateImportUsage = "warning"
[tool.coverage.run]
omit = [
"tests/*"
]
[tool.coverage.report]
exclude_lines = [
"^ *\\.\\.\\.$", # ... in abstract methods or whatever
"^ *pass$", # same as above
".*# pragma: no cover$" # comments saying 'pragma: no cover'
]
[tool.setuptools.packages.find]
include = ["learned_planner*", "experiments", "plot*"]
[tool.setuptools.package-data]
"*" = ["../.circleci/*.yml", "../k8s/*.yaml", "../plot/*.svg", "../tests/probes_dataset/*.pkl"]
[project]
name = "learned-planner"
version = "0.1.0"
description = "Planning behavior in RNNs that plays Sokoban."
readme = "README.md"
requires-python = ">=3.11"
license = {file = "LICENSE.txt"}
keywords = []
authors = [
{name = "Adrià Garriga-Alonso", email = "[email protected]"},
{name = "Mohammad Taufeeque", email = "[email protected]"},
]
maintainers = []
classifiers = []
dependencies = [
"gymnasium ~= 0.29.0",
"wandb ~=0.17.4",
"moviepy ~=1.0.3",
"shimmy ~=1.1.0", # match version in dev
"optree ~= 0.10.0",
"plotly",
# Freeze the numpy version so OpenBLAS numpy gets installed with pip. Conda-default MKL numpy causes errors when
# running SubprocessVecEnv on the EPYC machines of Flamingo.
"numpy ==1.26.4",
"scikit-learn ~=1.4.0",
"cairosvg ~=2.7.1",
"transformer-lens ~=2.4.0",
"names-generator ~=0.2.0",
"torch ~=2.4.1",
"torchvision ~=0.19.1",
"stable_baselines3 @ git+https://github.com/AlignmentResearch/learned-planners-stable-baselines3.git",
"gym_sokoban @ git+https://github.com/AlignmentResearch/gym-sokoban.git",
"farconf @ git+https://github.com/AlignmentResearch/farconf.git",
"train_learned_planner @ git+https://github.com/AlignmentResearch/train-learned-planner.git",
"mamba_lens @ git+https://github.com/taufeeque9/MambaLens.git",
"sae_lens @ git+https://github.com/AlignmentResearch/lp_sae.git",
]
[project.optional-dependencies]
dev = [
# local development
"pre-commit ~=3.6.0",
"pip-tools ~=7.4.1",
"notebook ~=6.5.4",
# Formatting and typing, linting
"pyright ~=1.1.353",
"black ~=23.3.0",
"ruff ~=0.1.14",
"mypy ~=1.9.0",
# run tests
"pytest ~=8.1.2",
"pytest-cov >=4,<5",
"pytest-env ~=1.1.3",
"pytest-profiling ==1.7.0",
# launch jobs
"GitPython ~=3.1.41",
]
[project.urls]
Repository = "https://github.com/AlignmentResearch/learned-planner/"
[project.scripts]
main = "learned_planner.configs.command_config:main"