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:
parent
f9643642b8
commit
a06cb5bdfb
1 changed files with 101 additions and 104 deletions
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue