Skip to content

Commit 8f911fc

Browse files
committed
Specify python version and add setup to run tests over python versions with tox
1 parent 9d5fd13 commit 8f911fc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pyproject.toml

+13
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors = [
77
{ name="Kelvin Ng" },
88
]
99
description = "A python package for working with various forms of feature tracking data"
10+
requires-python = ">=3.8, <3.13"
1011
dependencies = [
1112
"numpy<2",
1213
"xarray",
@@ -56,6 +57,18 @@ huracanpy = ["_data/example_data/*", "_data/_ibtracs_files/*"]
5657
[tool.ruff]
5758
extend-include = ["*.ipynb"]
5859

60+
[tool.tox]
61+
requires = ["tox>=4.15.0"]
62+
env_list = ["3.8", "3.9", "3.10", "3.11", "3.12"]
63+
64+
[tool.tox.env_run_base]
65+
extras = ["dev"]
66+
commands = [
67+
["ruff", "format", "--check"],
68+
["ruff", "check"],
69+
["pytest"]
70+
]
71+
5972
# - How to distribute the package
6073

6174
# 0/ Applying black formatting

0 commit comments

Comments
 (0)