Skip to content

Commit dda2488

Browse files
Improve test isolation and pytest integration (#68)
* Improve tests isolation Signed-off-by: elronbandel <[email protected]> * rewriting some huggingface tests to comply with new API * fixing some issues in pre-commit for notebooks * using default_output_to_bool for lora override test --------- Signed-off-by: elronbandel <[email protected]> Co-authored-by: Avinash Balakrishnan <[email protected]>
1 parent 0804cfd commit dda2488

File tree

8 files changed

+439
-396
lines changed

8 files changed

+439
-396
lines changed

docs/examples/notebooks/georgia_tech.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"RichDocument.from_document_file(\"https://mellea.ai\")\n",
5050
"\n",
5151
"# Some UI niceness.\n",
52-
"from IPython.display import HTML, display\n",
52+
"from IPython.display import HTML, display # noqa: E402\n",
5353
"\n",
5454
"\n",
5555
"def set_css():\n",

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ ignore = [
138138
# "UP006", # List vs list, etc
139139
# "UP007", # Option and Union
140140
# "UP035", # `typing.Set` is deprecated, use `set` instead"
141+
"PD901", # Avoid using the generic variable name `df` for DataFrames
141142
]
142143

143144
[tool.ruff.lint.pydocstyle]
@@ -151,7 +152,7 @@ combine-as-imports = true
151152
split-on-trailing-comma = false
152153

153154
[tool.codespell]
154-
ignore-words-list = 'mellea,hashi,noo,Asai,asai'
155+
ignore-words-list = 'mellea,hashi,noo,Asai,asai,nd'
155156
check-filenames = true
156157
check-hidden = false
157158
regex = "(?<![a-z])[a-z'`]+|[A-Z][a-z'`]*|[a-z]+'[a-z]*|[a-z]+(?=[_-])|[a-z]+(?=[A-Z])|\\d+"

0 commit comments

Comments
 (0)