-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·153 lines (130 loc) · 3.93 KB
/
pyproject.toml
File metadata and controls
executable file
·153 lines (130 loc) · 3.93 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
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
[project]
name = "graph_weather"
requires-python = ">=3.11"
version = "1.0.130"
description = "Graph-based AI Weather models"
authors = [
{name = "Jacob Prince-Bieker", email = "jacob@bieker.tech"},
]
dependencies = ["torch-harmonics", "anemoi-datasets>=0.4.5,<0.5"]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64"]
[tool.pixi.feature.cuda]
channels = ["nvidia",]
[tool.pixi.feature.cuda.system-requirements]
cuda = "12"
[tool.pixi.feature.cuda.target.linux-64.dependencies]
cuda-version = "==12.8"
#[tool.pixi.feature.cuda.target.linux-64.pypi-dependencies]
#natten = {url = "https://shi-labs.com/natten/wheels/cu124/torch2.4.0/natten-0.17.4%2Btorch240cu124-cp312-cp312-linux_x86_64.whl"}
[tool.pixi.feature.mlx]
# MLX is only available on macOS >=13.5 (>14.0 is recommended)
system-requirements = {macos = "13.5"}
[tool.pixi.feature.mlx.target.osx-arm64.dependencies]
mlx = {version = "*", channel = "conda-forge"}
#[tool.pixi.feature.mlx.target.osx-arm64.pypi-dependencies]
#natten = "*"
[tool.pixi.feature.cpu]
platforms = ["linux-64", "osx-arm64"]
#[tool.pixi.feature.cpu.pypi-dependencies]
#natten = "*"
[tool.pixi.dependencies]
python = "3.12.*"
pip = "*"
pytest = "*"
pre-commit = "*"
ruff = "*"
xarray = "*"
pandas = "*"
numcodecs = "*"
scipy = "*"
zarr = ">=3.0.0"
tqdm = "*"
lightning = "*"
einops = "*"
fsspec = "*"
datasets = "*"
trimesh = "*"
pysolar = "*"
rtree = "*"
pixi-pycharm = "*"
uv = ">=0.6.2,<0.7"
healpy = "*"
dacite = "*"
[tool.pixi.pypi-dependencies]
torch_geometric = "*"
pytest = "*"
pytest-xdist = "*"
h3 = "==4.3.1"
[tool.pixi.feature.cuda.pypi-dependencies]
torch = { version = ">=2.7.0", index = "https://download.pytorch.org/whl/cu128" }
torchvision = {version = "*", index = "https://download.pytorch.org/whl/cu128"}
[tool.pixi.feature.mlx.pypi-dependencies]
torch = { version = ">=2.7.0", index = "https://download.pytorch.org/whl/cpu" }
torchvision = {version = "*", index = "https://download.pytorch.org/whl/cpu"}
[tool.pixi.feature.cpu.pypi-dependencies]
torch = { version = ">=2.7.0", index = "https://download.pytorch.org/whl/cpu" }
torchvision = {version = "*", index = "https://download.pytorch.org/whl/cpu"}
[tool.pixi.environments]
default = ["cpu"]
cuda = ["cuda"]
mlx = ["mlx"]
[tool.pixi.tasks]
install = "pip install --editable ."
installnnja = "pip install git+https://github.com/brightbandtech/nnja-ai.git"
installnat = "pip install natten"
installnatcuda = "pip install natten==0.20.1+torch270cu128 -f https://whl.natten.org"
installpyg = "pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.7.0+cpu.html"
installpygcuda = "pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.7.0+cuda128.html"
test = "pytest"
format = "ruff format"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"tests",
]
# Same as Black.
line-length = 100
# Assume Python 3.10.
target-version = "py311"
fix=false
# Group violations by containing file.
output-format = "github"
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F", "D", "I"]
ignore = ["D200","D202","D210","D212","D415","D105"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
mccabe.max-complexity = 10
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E402"]