From 117b8ebdee882d7b48bb1a3c3bedaafc8c5c9e44 Mon Sep 17 00:00:00 2001 From: Vahid Ahmadi Date: Mon, 1 Jun 2026 14:49:07 +0100 Subject: [PATCH] Fix ruff formatting in validation notebook #1696 inserted warnings-suppression lines that were not ruff-formatted; the docs-only path filter skipped the full Lint on that merge, so the violation only surfaced when a later code PR triggered a repo-wide ruff format --check on main. Add the blank line ruff wants. Co-Authored-By: Claude Opus 4.8 (1M context) --- changelog.d/587-format.md | 1 + docs/book/validation/validation.ipynb | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/587-format.md diff --git a/changelog.d/587-format.md b/changelog.d/587-format.md new file mode 100644 index 000000000..7016708d9 --- /dev/null +++ b/changelog.d/587-format.md @@ -0,0 +1 @@ +- Apply ruff formatting to the validation notebook (blank line after the warnings import) so the repo-wide `ruff format --check` lint passes on main. diff --git a/docs/book/validation/validation.ipynb b/docs/book/validation/validation.ipynb index b937c1c72..ca15f9534 100644 --- a/docs/book/validation/validation.ipynb +++ b/docs/book/validation/validation.ipynb @@ -1790,6 +1790,7 @@ ], "source": [ "import warnings\n", + "\n", "warnings.filterwarnings(\"ignore\")\n", "\n", "from policyengine_uk import Microsimulation\n",