Skip to content

Commit

Permalink
tests: limit dask
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jan 23, 2025
1 parent 020eed7 commit f0db7ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
- name: Install package
run: uv pip install -e ".[test]"

- name: Install dask test requirements
if: matrix.python-version != "3.13"
run: uv pip install -e ".[dask]" "numpy<2"

- name: Test package
run: python -m pytest

Expand Down
22 changes: 7 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,16 @@ fit = [
"iminuit >=2",
]
dask = [
"dask[dataframe] >=2022",
"dask[dataframe] >=2022,<2025",
"dask_histogram >=2023.1",
]
test = [
"pytest >=6",
"pytest-mpl >=0.12",
"dask[dataframe] >=2022; python_version<'3.13'",
"dask_histogram >=2023.1; python_version<'3.13'",
]
dev = [
"pytest >=6",
"pytest-mpl >=0.12",
"matplotlib >=3.0",
"mplhep >=0.2.16",
"scipy >=1.4",
"iminuit >=2; python_version<'3.11'",
"hist[mpl,fit,test,dask]",
"ipykernel",
"dask[dataframe] >=2022",
"dask_histogram >=2023.1",
]
docs = [
"pytest >=6",
Expand Down Expand Up @@ -115,6 +106,10 @@ docs = [
version.source = "vcs"
build.hooks.vcs.version-file = "src/hist/version.py"

[tool.uv]
dev-dependencies = ["hist[dev]", "ipython"]


[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--strict-markers", "--strict-config"]
Expand All @@ -124,7 +119,7 @@ required_plugins = ["pytest-mpl"]
log_cli_level = "DEBUG"
filterwarnings = [
"error",
"ignore::matplotlib._api.deprecation.MatplotlibDeprecationWarning"
"ignore::matplotlib._api.deprecation.MatplotlibDeprecationWarning",
]

[tool.mypy]
Expand Down Expand Up @@ -184,9 +179,6 @@ messages_control.disable = [
]


[tool.ruff]
src = ["src"]

[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
Expand Down

0 comments on commit f0db7ba

Please sign in to comment.