From cc75f2b8dbbd513ac49e7b10923ae25e53eeb3c3 Mon Sep 17 00:00:00 2001 From: Nikolay Gagarinov Date: Fri, 11 Sep 2026 18:11:32 +0500 Subject: [PATCH] =?UTF-8?q?fix(linting):=20FEEDBACK-443=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BD=D1=83=D1=82=D1=8C=20=D0=BD=D0=B5=D0=B0=D0=BA=D0=BA?= =?UTF-8?q?=D1=83=D1=80=D0=B0=D1=82=D0=BD=D1=8B=D0=B5=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=D0=BC=D0=B5=D1=80=D1=8B=20=D0=B2=20=D1=83=D1=80=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=B8=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Прогон форматтера привёл к стилю оба блока урока, и он показывал одинаковый код там, где текст обещает разницу между неаккуратным и аккуратным вариантом. В задании вышло хуже: условие просит исправить пробелы вокруг операторов, а код под ним прогон уже исправил. Выполнить такое задание нельзя. Неаккуратные версии возвращены во всех трёх локалях, блоки помечены как антипримеры (`docs/markdown.md` кита, § «Антипример идёт в ```text»). Co-Authored-By: Claude Opus 5 (1M context) --- modules/20-arithmetics/45-linting/en/EXERCISE.md | 6 ++++-- modules/20-arithmetics/45-linting/en/README.md | 6 ++++-- modules/20-arithmetics/45-linting/es/EXERCISE.md | 6 ++++-- modules/20-arithmetics/45-linting/es/README.md | 6 ++++-- modules/20-arithmetics/45-linting/ru/EXERCISE.md | 6 ++++-- modules/20-arithmetics/45-linting/ru/README.md | 6 ++++-- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/modules/20-arithmetics/45-linting/en/EXERCISE.md b/modules/20-arithmetics/45-linting/en/EXERCISE.md index 5870f644..13b3c679 100644 --- a/modules/20-arithmetics/45-linting/en/EXERCISE.md +++ b/modules/20-arithmetics/45-linting/en/EXERCISE.md @@ -1,7 +1,9 @@ You received code from a colleague — it works correctly, but it violates the PEP8 formatting standard. Fix the spaces around the operators without changing the logic: -```python -print((5**2) - (3 * 7)) + + +```text +print( (5 **2)-(3* 7)) ``` The result must stay `4`. diff --git a/modules/20-arithmetics/45-linting/en/README.md b/modules/20-arithmetics/45-linting/en/README.md index bf4fd557..f856011d 100644 --- a/modules/20-arithmetics/45-linting/en/README.md +++ b/modules/20-arithmetics/45-linting/en/README.md @@ -6,8 +6,10 @@ Today you don't need to remember all the rules from the standard because there a Take a look at an example: -```python -result = 1 + 3 + + +```text +result = 1+ 3 ``` Linter will swear for breaking the rule: _E225 missing whitespace around operator_. By standard, the `+` operator must always be separated by spaces from the operands. diff --git a/modules/20-arithmetics/45-linting/es/EXERCISE.md b/modules/20-arithmetics/45-linting/es/EXERCISE.md index f91aa8ef..0e480ff1 100644 --- a/modules/20-arithmetics/45-linting/es/EXERCISE.md +++ b/modules/20-arithmetics/45-linting/es/EXERCISE.md @@ -1,7 +1,9 @@ Recibiste código de un colega: funciona correctamente, pero infringe el estándar de formato PEP8. Corrige los espacios alrededor de los operadores sin cambiar la lógica: -```python -print((5**2) - (3 * 7)) + + +```text +print( (5 **2)-(3* 7)) ``` El resultado debe seguir siendo `4`. diff --git a/modules/20-arithmetics/45-linting/es/README.md b/modules/20-arithmetics/45-linting/es/README.md index 792504b9..63b144c8 100644 --- a/modules/20-arithmetics/45-linting/es/README.md +++ b/modules/20-arithmetics/45-linting/es/README.md @@ -24,8 +24,10 @@ A día de hoy, el linter más rápido y popular del mundo Python se considera Ru Veamos un ejemplo: -```python -result = 1 + 3 + + +```text +result = 1+ 3 ``` Ese código se ve descuidado, y el linter señalará el error con razón. Así se ve el proceso de comprobación: diff --git a/modules/20-arithmetics/45-linting/ru/EXERCISE.md b/modules/20-arithmetics/45-linting/ru/EXERCISE.md index d5c52255..2e876f73 100644 --- a/modules/20-arithmetics/45-linting/ru/EXERCISE.md +++ b/modules/20-arithmetics/45-linting/ru/EXERCISE.md @@ -1,7 +1,9 @@ Вы получили код от коллеги — он работает правильно, но нарушает стандарт оформления PEP8. Исправьте пробелы вокруг операторов, не меняя логику: -```python -print((5**2) - (3 * 7)) + + +```text +print( (5 **2)-(3* 7)) ``` Результат должен остаться `4`. diff --git a/modules/20-arithmetics/45-linting/ru/README.md b/modules/20-arithmetics/45-linting/ru/README.md index 62f660f4..402070f6 100644 --- a/modules/20-arithmetics/45-linting/ru/README.md +++ b/modules/20-arithmetics/45-linting/ru/README.md @@ -24,8 +24,10 @@ Рассмотрим пример: -```python -result = 1 + 3 + + +```text +result = 1+ 3 ``` Такой код выглядит неаккуратно, и линтер справедливо укажет на ошибку. Вот как выглядит процесс проверки: