Skip to content

Commit 814468e

Browse files
committed
markdown lint
1 parent 4439000 commit 814468e

81 files changed

Lines changed: 94 additions & 122 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.markdownlint.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.rumdl.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# TODO: move to base image
2+
[global]
3+
disable = ["MD013", "MD041", "MD033"]

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ compose-build:
99
docker compose build
1010

1111
compose-bash:
12-
docker compose run exercises bash
12+
docker compose run --rm exercises bash
1313

1414
compose-test:
15-
docker compose run exercises make test
15+
docker compose run --rm exercises make test
1616

1717
compose-description-lint:
18-
docker compose run exercises make description-lint
18+
docker compose run --rm exercises make description-lint
1919

2020
compose-schema-validate:
2121
docker compose run exercises make schema-validate
@@ -25,11 +25,16 @@ ci-check:
2525
docker compose --file docker-compose.yml up --abort-on-container-exit
2626

2727
compose-code-lint:
28-
docker compose run exercises make code-lint
28+
docker compose run exercises make code-lint
2929

3030
code-lint:
3131
ruff check
3232

3333
code-deps-update:
3434
uv lock --upgrade
3535

36+
markdown-lint:
37+
rumdl check modules
38+
39+
markdown-lint-fix:
40+
rumdl fmt modules

modules/10-basics/10-hello-world/ru/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Hello, World!
66

77
![Hello World](./assets/hello-world.png)
88

9-
109
Этой традиции уже больше сорока лет, и мы тоже начнем с нее. В первом уроке мы напишем программу `Hello, World!`. На Python это программа выглядит так:
1110

1211
```python
@@ -57,4 +56,3 @@ prInt("it's a Python")
5756
print(…) │ ──→ │ Python │ ──→ │ Hello, World!│
5857
└──────────┘ └─────────────┘ └──────────────┘
5958
```
60-

modules/10-basics/30-instructions/es/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ print('Dracarys!')
1515
# => Dracarys!
1616
```
1717

18-
1918
Anteriormente hemos señalado que las instrucciones se separan por saltos de línea. Pero también hay otra forma: se pueden separar por punto y coma (`;`):
2019

2120
```python

modules/10-basics/50-syntax-errors/es/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Aquí hay un ejemplo de código con un error de sintaxis:
99
print('Hodor)
1010
```
1111

12-
1312
Si ejecutamos el código anterior, veremos el siguiente mensaje:
1413

1514
```bash

modules/20-arithmetics/20-basic/es/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ print(8 / 2) # => 4.0 (Al dividir dos números, el tipo de dato resultante es
4242
print(3 ** 2) # => 9
4343
```
4444

45-
4645
A veces, para mayor comodidad, mostraremos el resultado de ejecutar líneas de código de esta manera en los comentarios: `=> RESULTADO`. Por ejemplo, `# => 4`.
4746

4847
La primera instrucción mostrará `4` en la pantalla (porque 8 / 2 es igual a 4), y la segunda instrucción mostrará 9 en la pantalla (porque 3<sup>2</sup> es igual a 9).

modules/20-arithmetics/20-basic/ru/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ print(3 + 4) # выводит: 7
5151

5252
Python поддерживает все привычные операции + несколько специфичных, связанных с тем, как хранятся и обрабатываются числа на компьютере:
5353

54-
5554
| Операция | Символ | Пример | Результат |
5655
|------------------------|--------|--------------|-----------|
5756
| Сложение | `+` | `2 + 3` | `5` |
@@ -62,7 +61,6 @@ Python поддерживает все привычные операции + н
6261
| Целочисленное деление | `//` | `7 // 3` | `2` |
6362
| Остаток от деления | `%` | `7 % 3` | `1` |
6463

65-
6664
Вот как можно вывести результат деления и возведения в степень:
6765

6866
```python

modules/20-arithmetics/25-operator/en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In this example `+` — s the operator, and the numbers `8` and `2` — are **op
99

1010
When we add up, we have two operands: one to the left of the `+` sign, and one to the right. Operations that require two operands are called **binary**. operations. If at least one operand is omitted, e.g., `3 +`, the program will end with a syntax error.
1111

12-
Operations can be more than just binary, they can also be unary (one operand), and ternary (three operands). Moreover, operators may look the same but denote different operations. The symbols `+` and `-` are not only used as operators. When it comes to negative numbers, the minus sign becomes part of the number:
12+
Operations can be more than just binary, they can also be unary (one operand), and ternary (three operands). Moreover, operators may look the same but denote different operations. The symbols `+` and `-` are not only used as operators. When it comes to negative numbers, the minus sign becomes part of the number:
1313

1414
```python
1515
print(-3) # => -3

modules/20-arithmetics/27-commutativity/ru/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ print(3 - 2) # => 1
3939
Другие некоммутативные операции:
4040

4141
- Деление: _8 / 2 ≠ 2 / 8_
42-
- Возведение в степень: _2 ** 3 ≠ 3 ** 2_
42+
- Возведение в степень: _2 **3 ≠ 3** 2_
4343

4444
Примеры в коде:
4545

0 commit comments

Comments
 (0)