From 5a51946e9a389dcbb19fffe25c9b27951d751b37 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Thu, 4 Jun 2026 02:53:42 +0200 Subject: [PATCH 1/2] Add lint errors badge to README files --- README.en.md | 8 ++++++-- README.md | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.en.md b/README.en.md index 4735b52f6..b53965844 100644 --- a/README.en.md +++ b/README.en.md @@ -11,12 +11,16 @@ print( f'''[![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) [![core {core_words:.2f}%](https://img.shields.io/badge/core-{core_words:.2f}%25-0.svg)](https://translations.python.org/#pl) [![Total Translation of Documentation](https://img.shields.io/badge/total_words-{total_words:.2f}%25-0.svg)](https://translations.python.org/#pl) -[![Total Translation of Documentation](https://img.shields.io/badge/total_strings-{total_strings:.2f}%25-0.svg)](https://translations.python.org/#pl)''') +[![Total Translation of Documentation](https://img.shields.io/badge/total_strings-{total_strings:.2f}%25-0.svg)](https://translations.python.org/#pl) +[![lint errors count](https://shields.io/badge/dynamic/xml?url=https%3A%2F%2Ftranslations.python.org%2Fbuild-details.html&query=%2F%2Ftr%5Btd%5B%40data-label%3D%27language%27%20and%20contains%28.%2C%20%27%28pl%29%27%29%5D%5D%20%20%20%2F%2Ftd%5B%40data-label%3D%27lint%27%5D%2Fa%2Ftext()&label=lint%20errors)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) +''') ]]] --> [![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) [![core 100.00%](https://img.shields.io/badge/core-100.00%25-0.svg)](https://translations.python.org/#pl) [![Total Translation of Documentation](https://img.shields.io/badge/total_words-5.71%25-0.svg)](https://translations.python.org/#pl) [![Total Translation of Documentation](https://img.shields.io/badge/total_strings-12.59%25-0.svg)](https://translations.python.org/#pl) +[![lint errors count](https://shields.io/badge/dynamic/xml?url=https%3A%2F%2Ftranslations.python.org%2Fbuild-details.html&query=%2F%2Ftr%5Btd%5B%40data-label%3D%27language%27%20and%20contains%28.%2C%20%27%28pl%29%27%29%5D%5D%20%20%20%2F%2Ftd%5B%40data-label%3D%27lint%27%5D%2Fa%2Ftext()&label=lint%20errors)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) + *Przeczytaj to w innym języku: [polski](README.md)* @@ -74,7 +78,7 @@ You signify your acceptance of this agreement by submitting your work for inclus **Updating Translations** * `./manage_translation.py recreate_tx_config` * `./manage_translation.py fetch` -* `cog -rP README.md` +* `uvx cog -rP README.en.md` **Useful Materials** * [Python Developer's Guide: Translating](https://devguide.python.org/documentation/translations/translating/) diff --git a/README.md b/README.md index 1fbe2b848..f51aa6a59 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,16 @@ print( f'''[![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) [![podstawowe artykuły {core_words:.2f}%](https://img.shields.io/badge/podstawowe_artykuły-{core_words:.2f}%25-0.svg)](https://translations.python.org/#pl) [![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_słów-{total_words:.2f}%25-0.svg)](https://translations.python.org/#pl) -[![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_napisów-{total_strings:.2f}%25-0.svg)](https://translations.python.org/#pl)''') +[![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_napisów-{total_strings:.2f}%25-0.svg)](https://translations.python.org/#pl) +[![liczba błędów lintowania](https://shields.io/badge/dynamic/xml?url=https%3A%2F%2Ftranslations.python.org%2Fbuild-details.html&query=%2F%2Ftr%5Btd%5B%40data-label%3D%27language%27%20and%20contains%28.%2C%20%27%28pl%29%27%29%5D%5D%20%20%20%2F%2Ftd%5B%40data-label%3D%27lint%27%5D%2Fa%2Ftext()&label=b%C5%82%C4%99dy%20lintowania)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) +''') ]]] --> [![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) [![podstawowe artykuły 100.00%](https://img.shields.io/badge/podstawowe_artykuły-100.00%25-0.svg)](https://translations.python.org/#pl) [![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_słów-5.71%25-0.svg)](https://translations.python.org/#pl) [![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_napisów-12.59%25-0.svg)](https://translations.python.org/#pl) +[![liczba błędów lintowania](https://shields.io/badge/dynamic/xml?url=https%3A%2F%2Ftranslations.python.org%2Fbuild-details.html&query=%2F%2Ftr%5Btd%5B%40data-label%3D%27language%27%20and%20contains%28.%2C%20%27%28pl%29%27%29%5D%5D%20%20%20%2F%2Ftd%5B%40data-label%3D%27lint%27%5D%2Fa%2Ftext()&label=b%C5%82%C4%99dy%20lintowania)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml) + *Read this in another language: [English](README.en.md)* From 791e9bd925709c651c90ea781321231579d59661 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Thu, 4 Jun 2026 02:55:03 +0200 Subject: [PATCH 2/2] Fix command for updating README --- README.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.en.md b/README.en.md index b53965844..928a6d495 100644 --- a/README.en.md +++ b/README.en.md @@ -78,7 +78,7 @@ You signify your acceptance of this agreement by submitting your work for inclus **Updating Translations** * `./manage_translation.py recreate_tx_config` * `./manage_translation.py fetch` -* `uvx cog -rP README.en.md` +* `cog -rP README.en.md` **Useful Materials** * [Python Developer's Guide: Translating](https://devguide.python.org/documentation/translations/translating/)