Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (112 loc) · 3.47 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (112 loc) · 3.47 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
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 = "kaggle-environments"
version = "1.32.7"
description = "Kaggle Environments"
authors = [
{name = "Kaggle", email = "support@kaggle.com"},
]
dependencies = [
"Flask >= 1.1.2",
"gymnasium == 1.2.0",
"gymnax==0.0.8",
"jax",
"jsonschema >= 3.0.1",
# Capped below 1.94.0: it added _propagate_usage_cost_to_hidden_params,
# which does an unguarded float() on the provider-reported usage.cost. The
# Kaggle Model Proxy reports cost as a nanodollar dict, so that raises
# TypeError from the stream's final __next__ and kills the whole call.
"litellm >= 1.86.1, < 1.94.0",
"numpy >= 2.0",
"open_spiel == 2.0.1",
# Upper bound: pyxis subclasses ParallelEnv, whose API has broken across
# minor releases before. Raise deliberately after testing.
"pettingzoo >= 1.26.1, < 1.28",
"pokerkit==0.6.3",
"pydantic >= 2.11.4",
"pygame",
"pyjson5",
"termcolor",
"requests >= 2.25.1",
"shimmy >= 1.2.1",
"transformers >= 4.33.1",
"tenacity",
"google-auth >= 2.35.0",
# pyxis env (envs/pyxis) runtime dependencies
"click >= 8.3.0",
"omegaconf >= 2.3.0",
"protobuf >= 6.33.5",
"PyYAML >= 6.0.3",
"scipy >= 1.11.0",
"tqdm >= 4.67.1",
"universal-pathlib >= 0.3.5"
]
requires-python = ">=3.11"
[dependency-groups]
dev = [
"flit",
"ipython",
"pre-commit",
"python-dotenv",
"pytest",
"PyYAML",
"ruff",
"uv",
]
readme = ["README.md"]
license = ["LICENSE"]
keywords = ["Kaggle"]
[project.urls]
Homepage = "https://github.com/Kaggle/kaggle-environments"
[project.scripts]
kaggle-environments = "kaggle_environments.main:main"
[build-system]
requires = ["flit_core >=3.8,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "kaggle_environments"
# Flit specific options (files to exclude from the PyPI package).
# If using another build backend (setuptools, poetry), you can remove this
# section.
#
# NOTE: `flit publish` applies these excludes when building the sdist, and
# then builds the wheel from the sdist — so anything listed here is stripped
# from both. The CI publish step (docker/cicd-publish-to-pypi.sh) prunes
# each `visualizer/<variant>/` down to just `dist/index.html` before
# publishing (with `--no-use-vcs` so the untracked pruned files are
# included), and `**/visualizer/` is deliberately NOT in this list so those
# files survive to the wheel. That HTML is what `html_renderer()` returns
# in notebook / iframe srcdoc contexts.
[tool.flit.sdist]
exclude = [
# Do not release tests files on PyPI
"**/*_test.py",
"**/node_modules/",
".pnpm-store/",
"web/core/.npmrc",
]
[tool.setuptools.dynamic]
version = {attr = "kaggle_environments.__version__"}
[tool.ruff]
target-version = "py311"
line-length = 120
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint]
# sort imports
extend-select = ["I"]
ignore = [
# zip() without strict=True is fine for this codebase's Python version.
"B905",
# The following docstring rules are disabled to avoid overwhelming errors
# on the existing codebase. It's recommended to enable them gradually.
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
]