Resolve the remaining ruff findings

Every change keeps the values the same, so the stored outputs stay valid.
`init_r` keeps its import because only its side effect matters.
This commit is contained in:
Alexander Hess 2026-12-03 11:31:07 +01:00
commit a06cb5bdfb
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -19,6 +19,7 @@
"metadata": {},
"outputs": [],
"source": [
"import contextlib\n",
"import getpass\n",
"import os\n",
"import shutil"
@ -110,10 +111,8 @@
"outputs": [],
"source": [
"# Create a fresh folder for the R dependencies.\n",
"try:\n",
"with contextlib.suppress(FileNotFoundError):\n",
" shutil.rmtree(r_libs_path)\n",
"except FileNotFoundError:\n",
" pass\n",
"os.makedirs(r_libs_path)"
]
},
@ -1840,7 +1839,7 @@
"metadata": {},
"outputs": [],
"source": [
"from velofy import init_r"
"from velofy import init_r # noqa: F401"
]
}
],