diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6084b66f..7f006036 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,7 @@ jobs: - "3.8" - "3.9" - "3.10" + - "3.11-dev" name: Check Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index d0073ddd..4ef2f970 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Scientific/Engineering :: Mathematics", @@ -58,8 +59,8 @@ mpl = [ plot = [ "matplotlib >=3.0", "mplhep >=0.2.16", - "scipy >=1.4", - "iminuit >=2", + "scipy >=1.4; python_version<'3.11'", + "iminuit >=2; python_version<'3.11'", ] test = [ "pytest >=6", @@ -70,8 +71,8 @@ dev = [ "pytest-mpl >=0.12", "matplotlib >=3.0", "mplhep >=0.2.16", - "scipy >=1.4", - "iminuit >=2", + "scipy >=1.4; python_version<'3.11'", + "iminuit >=2; python_version<'3.11'", "ipykernel", ] docs = [ @@ -79,8 +80,8 @@ docs = [ "pytest-mpl >=0.12", "matplotlib >=3.0", "mplhep >=0.2.16", - "scipy >=1.4", - "iminuit >=2", + "scipy >=1.4; python_version<'3.11'", + "iminuit >=2; python_version<'3.11'", "ipython_genutils", "nbsphinx", "Sphinx >=3.0.0", @@ -106,6 +107,10 @@ xfail_strict = true testpaths = ["tests"] required_plugins = ["pytest-mpl"] log_cli_level = "DEBUG" +filterwarnings = [ + "error", + "ignore::matplotlib._api.deprecation.MatplotlibDeprecationWarning" +] [tool.nbqa.mutate] pyupgrade = 1