From df00e513e33fa75cc272d908a4f329b4388261b6 Mon Sep 17 00:00:00 2001 From: Lukas Piwowarski Date: Tue, 10 Feb 2026 17:07:35 +0100 Subject: [PATCH 1/2] Add pre-commit checks for trailing-whitespaces --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 221bd17..959145b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,3 +10,8 @@ repos: hooks: - id: ruff - id: ruff-format + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: trailing-whitespace From 5666231569a5b45af4518e725f61e8a0dc0afe01 Mon Sep 17 00:00:00 2001 From: Lukas Piwowarski Date: Tue, 10 Feb 2026 17:08:34 +0100 Subject: [PATCH 2/2] Fix trailing spaces --- scripts/get_openstack_plaintext_docs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get_openstack_plaintext_docs.sh b/scripts/get_openstack_plaintext_docs.sh index 8c87783..a178b03 100755 --- a/scripts/get_openstack_plaintext_docs.sh +++ b/scripts/get_openstack_plaintext_docs.sh @@ -152,7 +152,7 @@ deps = " echo "Generating the plain-text documentation for OpenStack $project" - + echo "OS_API_DOCS is set to: $OS_API_DOCS" # Clone the project's repository, if not present @@ -272,7 +272,7 @@ deps = mkdir -p "$project_output_dir" # Only copy if text docs were built (skipped for neutron-lib) [ -d "doc/build/text" ] && cp -r doc/build/text "$project_output_dir"/"$_output_version"_docs - + # Copy API-Ref documentation only if OS_API_DOCS is enabled and build succeeded if [ "$OS_API_DOCS" = "true" ] && [ -d "./api-ref/source" ] && \ [ "$api_ref_failed" != "true" ] && [ -d "api-ref/build/text" ]; then