forked from MIT-LAE/AEIC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (100 loc) · 3.18 KB
/
pyproject.toml
File metadata and controls
120 lines (100 loc) · 3.18 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
[project]
name = "AEIC"
version = "0.3.0"
authors = [
{name = "Wyatt Giroux", email = "girouxw@mit.edu"},
{name = "Prakash Prashanth", email = "prash@mit.edu"},
{name = "Prateek Ranjan", email = "prateekr@mit.edu"},
{name = "Aditeya Shukla", email = "aditeya@mit.edu"},
{name = "Raymond Speth", email = "speth@mit.edu"},
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.12,<3.13"
dependencies = [
"httpx>=0.28.1",
"timezonefinder>=8.0.0",
"netcdf4>=1.7.3",
"cachetools>=6.2.1",
"matplotlib>=3.10.7",
"openpyxl>=3.1.5",
"pydantic>=2.12.5",
"pyproj>=3.7.2",
"tqdm>=4.67.1",
"click>=8.3.1",
"numpy>=2.3.5",
"scipy>=1.16.3",
"pandas>=2.3.3",
"xarray>=2025.12.0",
"zarr>=3.1.6",
"numba>=0.65.0",
"tomlkit>=0.13",
]
[dependency-groups]
dev = [
"pytest-cov>=6.2.1",
"ipykernel>=6.30.1",
"enum-tools>=0.13.0",
"sphinx-toolbox>=4.0.0",
"ruff>=0.14.8",
"pytest>=9.0.2",
"sphinx>=8.2.3,<9.0",
"sphinx-rtd-theme>=3.0.2",
"myst-parser>=4.0.1",
"bump-my-version>=1.2.6",
"cloudpickle>=3.1.2",
"pytest-forked>=1.6.0",
"cartopy>=0.25.0",
]
[project.scripts]
aeic = "AEIC.cli:cli_safe"
[build-system]
requires = ["uv_build>=0.9.17,<0.10.0"]
build-backend = "uv_build"
[tool.uv]
# Require that the package is available for macOS ARM.
required-environments = [
"sys_platform == 'darwin' and platform_machine == 'arm64'"
]
[tool.uv.build-backend]
module-name = "AEIC"
wheel-exclude = ["airports.csv"]
source-exclude = ["airports.csv"]
[tool.bumpversion]
current_version = "0.3.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
commit = true
commit_args = "--no-verify"
tag = false
tag_name = "v{new_version}"
tag_message = "Release v{new_version}"
files = [
{ filename = "README.md" },
{ filename = "docs/main_page.md" }
]
[tool.ruff]
extend-exclude = ["*.ipynb"]
# Use Black-compatible defaults
line-length = 88
# Optionally, choose which rule sets to enable; this is a typical starting point.
# Remove or extend as you like.
lint.select = ["E", "F", "W", "I", "UP"] # pycodestyle, pyflakes, warnings, isort, pyupgrade
lint.ignore = [] # specify ignores here
# If you want Ruff to auto-format with Black style when you run
# ruff format .
# you don't need any extra options—the default formatter already follows Black’s 88-char width.
[tool.black]
line-length = 88
[tool.ruff.format]
quote-style = "preserve" # keep whatever the file already uses, dont change single quotes to double
[tool.pytest.ini_options]
# Restrict collection to `tests/` so that worktrees / sibling checkouts
# (e.g. `pretty-performance-model-toml/tests/`, `trajectories-to-grid/tests/`)
# do not get walked — each ships its own `tests/conftest.py` that
# collides with the repo's own under the `tests.conftest` module name,
# breaking `uv run pytest` from the repo root.
testpaths = ["tests"]
# Numpy claims these warnings are harmless, so filter them out:
# https://github.com/numpy/numpy/blob/46268caa719db95ab2198bcd619f0e3120d7c52e/numpy/__init__.py#L704-L707
filterwarnings = ["ignore:numpy.ndarray size changed:RuntimeWarning"]