From 116d72dc4ef9b51423c1622534aca69f9d9c8c33 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Wed, 24 Apr 2024 18:37:09 +0200 Subject: [PATCH] Pin mypy<1.10.0 --- .gitignore | 4 ++++ plugins/contents/fps_contents/fileid.py | 10 ++++++++-- pyproject.toml | 25 ++++++++++++++++++++++++- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d4751320..cedffc31 100644 --- a/.gitignore +++ b/.gitignore @@ -344,3 +344,7 @@ $RECYCLE.BIN/ .jupyter_ystore.db .jupyter_ystore.db-journal fps_cli_args.toml +# pixi environments +.pixi +*.egg-info + diff --git a/plugins/contents/fps_contents/fileid.py b/plugins/contents/fps_contents/fileid.py index db160034..4c245ea1 100644 --- a/plugins/contents/fps_contents/fileid.py +++ b/plugins/contents/fps_contents/fileid.py @@ -127,7 +127,10 @@ async def watch_files(self): ) if not (await cursor.fetchone())[0]: # path is not indexed, ignore - contents_logger.debug("File %s is not indexed, ignoring", changed_path_str) + contents_logger.debug( + "File %s is not indexed, ignoring", + changed_path_str, + ) continue # path is indexed await maybe_rename( @@ -147,7 +150,10 @@ async def watch_files(self): ) if not (await cursor.fetchone())[0]: # path is not indexed, ignore - contents_logger.debug("File %s is not indexed, ignoring", changed_path_str) + contents_logger.debug( + "File %s is not indexed, ignoring", + changed_path_str, + ) continue mtime = (await changed_path.stat()).st_mtime await cursor.execute( diff --git a/pyproject.toml b/pyproject.toml index 2207def2..407db124 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ auth-jupyterhub = ["fps-auth-jupyterhub >=0.1.2,<1"] noauth = ["fps-noauth >=0.1.2,<1"] test = [ "ruff >=0.1.2", - "mypy", + "mypy <1.10.0", "types-setuptools", "pytest", "pytest-asyncio", @@ -188,3 +188,26 @@ python_packages = [ [tool.hatch.version] path = "jupyverse/__init__.py" + +[tool.pixi.project] +channels = ["conda-forge"] +platforms = ["linux-64"] + +[tool.pixi.pypi-dependencies] +jupyverse = { path = ".", editable = true } + +[tool.pixi.environments] +default = { solve-group = "default" } +auth = { features = ["auth"], solve-group = "default" } +auth-fief = { features = ["auth-fief"], solve-group = "default" } +auth-jupyterhub = { features = ["auth-jupyterhub"], solve-group = "default" } +docs = { features = ["docs"], solve-group = "default" } +jupyterlab = { features = ["jupyterlab"], solve-group = "default" } +noauth = { features = ["noauth"], solve-group = "default" } +notebook = { features = ["notebook"], solve-group = "default" } +test = { features = ["test"], solve-group = "default" } + +[tool.pixi.tasks] + +[tool.pixi.dependencies] +pip = ">=24.0,<25"