Skip to content

Commit

Permalink
Merge pull request #105 from datamol-io/lint
Browse files Browse the repository at this point in the history
fix lint
  • Loading branch information
maclandrol authored Aug 20, 2024
2 parents 40414ae + d1ecb65 commit ff92ee6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/benchmark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
" mol = dm.to_mol(smi, ordered=True, sanitize=False) \n",
" try: \n",
" mol = dm.sanitize_mol(mol)\n",
" except:\n",
" except: # noqa: E722\n",
" mol = None\n",
" \n",
" if mol is None: \n",
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/custom_model_store.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@
"# we reimport to reload the store information without restarting the kernel\n",
"import dotenv\n",
"dotenv.load_dotenv(override=True)\n",
"from molfeat.store import ModelStore\n",
"from molfeat.store import ModelStore # noqa: E402\n",
"model = PretrainedDGLTransformer(kind=\"tmp_gin_supervised_infomax\", dtype=float)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/datacache.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"\n",
"cache = FileCache(\n",
" name=\"fcd_cache_test\",\n",
" cache_file=f\"fcd_cache.parquet\",\n",
" cache_file=\"fcd_cache.parquet\",\n",
" file_type=\"parquet\",\n",
" mol_hasher=\"dm.unique_id\",\n",
")\n",
Expand Down
3 changes: 0 additions & 3 deletions docs/tutorials/transformer_finetuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"metadata": {},
"outputs": [],
"source": [
"from molfeat.utils.converters import SmilesConverter\n",
"from molfeat.trans.pretrained import PretrainedHFTransformer"
]
},
Expand Down Expand Up @@ -222,7 +221,6 @@
"source": [
"from torch.utils.data import Dataset\n",
"from torch.utils.data import DataLoader\n",
"from transformers import default_data_collator\n",
"\n",
"\n",
"class DTset(Dataset):\n",
Expand Down Expand Up @@ -499,7 +497,6 @@
],
"source": [
"from sklearn.metrics import accuracy_score, roc_auc_score\n",
"from matplotlib import pyplot as plt\n",
"\n",
"model.eval()\n",
"test_y_hat = []\n",
Expand Down

0 comments on commit ff92ee6

Please sign in to comment.