From 0908e583a7180c8cfa7647bfd55da10a3e3ae2f6 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 4 Feb 2025 15:27:41 +0100 Subject: [PATCH 1/5] add file that does nothing --- noop.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 noop.py diff --git a/noop.py b/noop.py new file mode 100644 index 0000000000..e69de29bb2 From 9f58431535769fed84f246256f9775350812f3d7 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 4 Feb 2025 16:10:35 +0100 Subject: [PATCH 2/5] remove dummy file and pin astroid --- noop.py | 0 pyproject.toml | 1 + 2 files changed, 1 insertion(+) delete mode 100644 noop.py diff --git a/noop.py b/noop.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/pyproject.toml b/pyproject.toml index 8d73485dac..ee509327a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,6 +103,7 @@ docs = [ 'numcodecs[msgpack]', 'rich', 's3fs', + 'astroid<4' ] From c3872d6ee6612a4dad7fe3967f4b3ff44482f0a8 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 4 Feb 2025 16:15:44 +0100 Subject: [PATCH 3/5] changelog --- changes/2796.chore.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/2796.chore.rst diff --git a/changes/2796.chore.rst b/changes/2796.chore.rst new file mode 100644 index 0000000000..0ef1b8d31e --- /dev/null +++ b/changes/2796.chore.rst @@ -0,0 +1 @@ +The docs environment is now built with ``astroid`` pinned to a version less than 4. This allows the docs to build in CI. \ No newline at end of file From 31bef35b4bb81c6f5f037728edc18c606d5e4b83 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 4 Feb 2025 21:13:43 +0000 Subject: [PATCH 4/5] Add astroid to ignore list for codespell --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ee509327a1..4fd43f67b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -428,3 +428,6 @@ directory = 'changes' filename = "docs/release-notes.rst" underlines = ["-", "~", "^"] issue_format = ":issue:`{issue}`" + +[codespell] +ignore-words-list = astroid From 3606b39a4360edd4ec9e1577e2ea0eec4d401806 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 4 Feb 2025 21:15:40 +0000 Subject: [PATCH 5/5] Fix codespell ignore --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4fd43f67b8..6fbcd1991e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -429,5 +429,5 @@ filename = "docs/release-notes.rst" underlines = ["-", "~", "^"] issue_format = ":issue:`{issue}`" -[codespell] -ignore-words-list = astroid +[tool.codespell] +ignore-words-list = "astroid"