Skip to content

Commit

Permalink
Pin mypy<1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Apr 24, 2024
1 parent d78fe87 commit 116d72d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,7 @@ $RECYCLE.BIN/
.jupyter_ystore.db
.jupyter_ystore.db-journal
fps_cli_args.toml
# pixi environments
.pixi
*.egg-info

10 changes: 8 additions & 2 deletions plugins/contents/fps_contents/fileid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
25 changes: 24 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"

0 comments on commit 116d72d

Please sign in to comment.