diff --git a/docs/examples/notebooks/georgia_tech.ipynb b/docs/examples/notebooks/georgia_tech.ipynb index 7116c5ec..fd08b41b 100644 --- a/docs/examples/notebooks/georgia_tech.ipynb +++ b/docs/examples/notebooks/georgia_tech.ipynb @@ -49,7 +49,7 @@ "RichDocument.from_document_file(\"https://mellea.ai\")\n", "\n", "# Some UI niceness.\n", - "from IPython.display import HTML, display\n", + "from IPython.display import HTML, display # noqa: E402\n", "\n", "\n", "def set_css():\n", diff --git a/pyproject.toml b/pyproject.toml index bd97f66f..1548e1d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,6 +138,7 @@ ignore = [ # "UP006", # List vs list, etc # "UP007", # Option and Union # "UP035", # `typing.Set` is deprecated, use `set` instead" + "PD901", # Avoid using the generic variable name `df` for DataFrames ] [tool.ruff.lint.pydocstyle] @@ -151,7 +152,7 @@ combine-as-imports = true split-on-trailing-comma = false [tool.codespell] -ignore-words-list = 'mellea,hashi,noo,Asai,asai' +ignore-words-list = 'mellea,hashi,noo,Asai,asai,nd' check-filenames = true check-hidden = false regex = "(? Literal["positive", "negative"]: ... def write_me_an_email() -> str: ... -@pytest.fixture +@pytest.fixture(scope="function") def session(): - return start_session(ctx=LinearContext()) + """Fresh session for each test.""" + session = start_session() + yield session + session.reset() @pytest.fixture