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 c55ecd1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: uv pip list

- name: Install package
run: uv pip install -e ".[test]"
run: uv pip install -e ".[test,dask]"

- name: Test package
run: python -m pytest
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def pylint(session: nox.Session) -> None:
Run pylint.
"""

session.install("pylint~=2.17.0")
session.install("pylint~=3.3.3")
session.install("-e.")
session.run("pylint", "hist", *session.posargs)

Expand Down
32 changes: 9 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,37 +67,21 @@ 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",
"pytest-mpl >=0.12",
"matplotlib >=3.0",
"mplhep >=0.2.16",
"scipy >=1.4",
"iminuit >=2",
"hist[test,plot,fit,dask]",
"ipython_genutils",
"graphviz >=0.20.1",
"dask[dataframe] >=2022",
"dask_histogram >=2023.1",
"nbsphinx",
"sphinx >=3.0.0",
"sphinx_copybutton",
Expand All @@ -115,6 +99,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 +112,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 @@ -173,6 +161,7 @@ messages_control.disable = [
"too-many-locals",
"too-many-return-statements",
"too-many-statements",
"too-many-positional-arguments",
"wrong-import-position",
"duplicate-code",
"import-outside-toplevel",
Expand All @@ -184,9 +173,6 @@ messages_control.disable = [
]


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

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

0 comments on commit c55ecd1

Please sign in to comment.