From 74b4d3977d5066eec627824295e381c5b84b2519 Mon Sep 17 00:00:00 2001 From: aoright <102943475+aoright@users.noreply.github.com> Date: Wed, 19 Aug 2026 09:39:17 +0800 Subject: [PATCH] fix(website): sort import blocks in test_readme_parser and specify check=False in bigquery runner Signed-off-by: aoright <102943475+aoright@users.noreply.github.com> --- website/build.py | 0 website/fetch_github_stars.py | 0 website/fetch_pypi_downloads_via_bigquery.py | 2 +- website/fetch_pypi_downloads_via_clickpy.py | 0 website/fetch_pypi_downloads_via_pepy.py | 0 website/readme_parser.py | 0 website/tests/test_readme_parser.py | 5 ++--- 7 files changed, 3 insertions(+), 4 deletions(-) mode change 100644 => 100755 website/build.py mode change 100644 => 100755 website/fetch_github_stars.py mode change 100644 => 100755 website/fetch_pypi_downloads_via_bigquery.py mode change 100644 => 100755 website/fetch_pypi_downloads_via_clickpy.py mode change 100644 => 100755 website/fetch_pypi_downloads_via_pepy.py mode change 100644 => 100755 website/readme_parser.py diff --git a/website/build.py b/website/build.py old mode 100644 new mode 100755 diff --git a/website/fetch_github_stars.py b/website/fetch_github_stars.py old mode 100644 new mode 100755 diff --git a/website/fetch_pypi_downloads_via_bigquery.py b/website/fetch_pypi_downloads_via_bigquery.py old mode 100644 new mode 100755 index e8b5bbfc57..87099c6961 --- a/website/fetch_pypi_downloads_via_bigquery.py +++ b/website/fetch_pypi_downloads_via_bigquery.py @@ -47,7 +47,7 @@ def fetch_bigquery(names: list[str], dry_run: bool) -> dict[str, int]: if dry_run: cmd.append("--dry_run") cmd.append(query) - result = subprocess.run(cmd, capture_output=True, text=True) + result = subprocess.run(cmd, capture_output=True, text=True, check=False) if result.returncode != 0: print(result.stderr, file=sys.stderr) sys.exit(1) diff --git a/website/fetch_pypi_downloads_via_clickpy.py b/website/fetch_pypi_downloads_via_clickpy.py old mode 100644 new mode 100755 diff --git a/website/fetch_pypi_downloads_via_pepy.py b/website/fetch_pypi_downloads_via_pepy.py old mode 100644 new mode 100755 diff --git a/website/readme_parser.py b/website/readme_parser.py old mode 100644 new mode 100755 diff --git a/website/tests/test_readme_parser.py b/website/tests/test_readme_parser.py index 4d0b7ae73f..67e937b1c3 100644 --- a/website/tests/test_readme_parser.py +++ b/website/tests/test_readme_parser.py @@ -4,6 +4,8 @@ from pathlib import Path import pytest +from markdown_it import MarkdownIt +from markdown_it.tree import SyntaxTreeNode from readme_parser import ( _find_inline, @@ -13,9 +15,6 @@ render_inline_text, ) -from markdown_it import MarkdownIt -from markdown_it.tree import SyntaxTreeNode - def _parse_inline(md_text: str) -> list[SyntaxTreeNode]: """Helper: parse a single paragraph and return its inline children."""