-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
126 lines (114 loc) · 3.49 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
[project]
name = "research_project_template"
version = "0.0.1"
description = "Research Project Template"
authors = [
{ name = "Fabrice Normandin", email = "[email protected]" },
{ name = "César Miguel Valdez Córdova", email = "[email protected]" },
]
dependencies = [
"torch==2.4.1",
"jax==0.4.33",
"jaxlib==0.4.33",
"hydra-core>=1.3.2",
"wandb>=0.17.6",
"lightning>=2.4.0",
"torchvision>=0.19.0",
"rich>=13.7.1",
"tqdm>=4.66.5",
"hydra-zen==0.13.1rc1",
"gdown>=5.2.0",
"hydra-submitit-launcher>=1.2.0",
"hydra-colorlog>=1.2.0",
"matplotlib>=3.9.2",
"torch-jax-interop>=0.0.7",
"pydantic>=2.8.2",
"simple-parsing>=0.1.5",
"datasets>=2.21.0",
"transformers>=4.44.0",
"scikit-learn>=1.5.1",
"evaluate>=0.4.2",
# Pin the version to work around https://github.com/plotly/Kaleido/issues/156.
# Only pinning this so that we can install the hydra-orion-sweeper.
"kaleido==0.2.1",
"hydra-orion-sweeper>=1.6.4",
"gymnax @ git+https://www.github.com/lebrice/gymnax@fix-classic-control-rendering",
"rejax>=0.1.0",
"xtils[jitpp] @ git+https://github.com/jessefarebro/xtils",
"gymnasium[classic-control]>=0.29.1",
"mkdocs>=1.6.1",
"mkdocstrings[python]>=0.26.2",
"remote-slurm-executor",
"watchdog>=5.0.3",
"hydra-auto-schema>=0.0.6",
]
readme = "README.md"
requires-python = ">= 3.10"
[dependency-groups]
dev = [
"mktestdocs>=0.2.2",
"pre-commit<4.0.0",
"pytest-benchmark>=4.0.0",
"pytest-cov>=5.0.0",
"pytest-env>=1.1.3",
"pytest-regressions>=2.5.0",
"pytest-skip-slow>=0.0.5",
"pytest-testmon>=2.1.1",
"pytest-timeout>=2.3.1",
"pytest-xdist>=3.6.1",
"pytest>=8.3.2",
"ruff>=0.6.0",
"tensor-regression>=0.0.8",
]
[project.optional-dependencies]
docs = [
"mkdocs-gen-files>=0.5.0",
"mkdocs-awesome-pages-plugin>=2.9.3",
"mkdocs-literate-nav>=0.6.1",
"mkdocs-material>=9.5.31",
"black>=24.8.0",
"mkdocs-video>=1.5.0",
"mkdocs-section-index>=0.3.9",
"mkdocs-macros-plugin>=1.0.5",
"mkdocs-autoref-plugin",
]
gpu = ["jax[cuda12]>=0.4.31"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["project", "docs"]
norecursedirs = [".venv", "site"]
# Required to use torch deterministic mode.
env = ["CUBLAS_WORKSPACE_CONFIG=:4096:8"]
addopts = [
# todo: look into using https://github.com/scientific-python/pytest-doctestplus
"--doctest-modules",
"--stats-rounding-precision=3",
# "--slow",
# "--regen-all",
]
markers = [
"incremental: incremental testing support",
"parametrize_when_used: Parametrize a test only when the argument is used.",
]
[tool.ruff]
line-length = 99
indent-width = 4
# Add the pyupgrade and isort options in addition to the defaults.
lint.select = ["E4", "E7", "E9", "F", "I", "UP"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["project"]
[tool.uv]
managed = true
[tool.uv.sources]
remote-slurm-executor = { git = "https://github.com/lebrice/remote-slurm-executor", branch = "master" }
mkdocs-autoref-plugin = { git = "https://github.com/lebrice/mkdocs-autoref-plugin" }
# [tool.uv.tasks]
# serve-docs = "mkdocs serve"
# check_torch_gpu = "python -c 'import torch; print(torch.cuda.is_available())'"
# check_jax_gpu = "python -c 'import jax.numpy as jnp; print(jnp.zeros(1).devices())'"
# tests = "pytest -x -v"
# auto_schema = "python project/utils/auto_schema.py ."