Skip to content

Commit b213f6c

Browse files
authored
Add markdownlint-cli2 to pre-commit (#715)
1 parent c132443 commit b213f6c

File tree

9 files changed

+63
-25
lines changed

9 files changed

+63
-25
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ the community.
116116

117117
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118118
version 2.0, available at
119-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
119+
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
120120

121121
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122122
enforcement ladder](https://github.com/mozilla/diversity).
123123

124124
[homepage]: https://www.contributor-covenant.org
125125

126126
For answers to common questions about this code of conduct, see the FAQ at
127-
https://www.contributor-covenant.org/faq. Translations are available at
128-
https://www.contributor-covenant.org/translations.
127+
<https://www.contributor-covenant.org/faq>. Translations are available at
128+
<https://www.contributor-covenant.org/translations>.

.github/PULL_REQUEST_TEMPLATE/task_submission_en.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ Please ensure the following items are completed **before** submitting your pull
3131
- [ ] **clang-tidy**: My changes pass `clang-tidy` locally in my fork (no warnings/errors)
3232
- [ ] **Functional Tests**: All functional tests are passing locally on my machine
3333
- [ ] **Performance Tests**: All performance tests are passing locally on my machine
34-
- [ ] **Branch**: I am working on a branch named exactly as my task directory (e.g., `nesterov_a_vector_sum`), not on `master`.
35-
- [ ] **Truthful Content**: I confirm that every detail provided in this pull request is accurate and truthful to the best of my knowledge.
34+
- [ ] **Branch**: I am working on a branch named exactly as my task directory (e.g., `nesterov_a_vector_sum`),
35+
not on `master`.
36+
- [ ] **Truthful Content**: I confirm that every detail provided in this pull request is accurate and truthful to the
37+
best of my knowledge.
3638

3739
<!--
3840
NOTE: Untruthful entries in this checklist may result in PR rejection and zero points for the associated task.

.github/PULL_REQUEST_TEMPLATE/task_submission_ru.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@
3131
- [ ] **clang-tidy**: Мои изменения успешно проходят `clang-tidy` локально в моем форке (нет предупреждений/ошибок)
3232
- [ ] **Функциональные тесты**: Все функциональные тесты успешно проходят локально на моей машине
3333
- [ ] **Тесты производительности**: Все тесты производительности успешно проходят локально на моей машине
34-
- [ ] **Ветка**: Я работаю в ветке, названной точно так же, как директория моей задачи (например, `nesterov_a_vector_sum`), а не в `master`
35-
- [ ] **Правдивое содержание**: Я подтверждаю, что все сведения, указанные в этом pull request, являются точными и достоверными
34+
- [ ] **Ветка**: Я работаю в ветке, названной точно так же, как директория моей задачи
35+
(например, `nesterov_a_vector_sum`), а не в `master`
36+
- [ ] **Правдивое содержание**: Я подтверждаю, что все сведения, указанные в этом pull request, являются точными и
37+
достоверными
3638

3739
<!--
38-
ПРИМЕЧАНИЕ: Ложные сведения в этом чек-листе могут привести к отклонению PR и получению нулевого балла за соответствующую задачу.
40+
ПРИМЕЧАНИЕ: Ложные сведения в этом чек-листе могут привести к отклонению PR и получению нулевого балла
41+
за соответствующую задачу.
3942
-->

.markdownlint-cli2.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
config:
2+
MD013:
3+
line_length: 120
4+
code_blocks: false
5+
tables: false
6+
MD041: false
7+
MD029: false

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ repos:
7474
files: (^|/)(Dockerfile|.*\.Dockerfile)$
7575
args: [--config, .hadolint.yaml]
7676

77+
- repo: https://github.com/DavidAnson/markdownlint-cli2
78+
rev: v0.20.0
79+
hooks:
80+
- id: markdownlint-cli2
81+
exclude: ^(3rdparty/|build.*/|install/)
82+
args: ["--fix"]
83+
7784
# Configuration
7885
default_stages: [pre-commit]
7986
fail_fast: false

README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
1+
# Parallel Programming Course
2+
13
[![Build application](https://github.com/learning-process/parallel_programming_course/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/learning-process/parallel_programming_course/actions/workflows/main.yml)
24
[![Pages](https://github.com/learning-process/parallel_programming_course/actions/workflows/pages.yml/badge.svg?branch=master)](https://github.com/learning-process/parallel_programming_course/actions/workflows/pages.yml)
35
[![CodeQL](https://github.com/learning-process/parallel_programming_course/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/learning-process/parallel_programming_course/actions/workflows/codeql.yml)
46
[![codecov](https://codecov.io/gh/learning-process/parallel_programming_course/graph/badge.svg?token=qCOtqeFyIz)](https://codecov.io/gh/learning-process/parallel_programming_course)
57
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/learning-process/parallel_programming_course/badge)](https://scorecard.dev/viewer/?uri=github.com/learning-process/parallel_programming_course)
68

7-
# Parallel Programming Course
8-
99
Welcome to the Parallel Programming Course!
1010

1111
Resources:
12-
- Documentation (full instructions and quick start): [English](https://learning-process.github.io/parallel_programming_course/en/), [Russian](https://learning-process.github.io/parallel_programming_course/ru/)
12+
13+
- Documentation (full instructions and quick start):
14+
[English](https://learning-process.github.io/parallel_programming_course/en/),
15+
[Russian](https://learning-process.github.io/parallel_programming_course/ru/)
1316
- [Parallel Programming Course Slides](https://learning-process.github.io/parallel_programming_slides/)
1417
- [Course Scoreboard](https://learning-process.github.io/parallel_programming_course/scoreboard/)
1518
- [Code Coverage Report](https://learning-process.github.io/parallel_programming_course/coverage/)
1619

17-
### Parallel programming technologies:
18-
The following parallel programming technologies are considered in practice:
19-
* [Message Passing Interface (MPI)](https://www.mpi-forum.org/)
20-
* [OpenMP (Open Multi-Processing)](https://www.openmp.org/)
21-
* [oneAPI Threading Building Blocks (oneTBB)](https://github.com/oneapi-src/oneTBB)
22-
* [Multithreading in C++ (`std::thread`)](https://en.cppreference.com/w/cpp/thread/thread)
20+
## Parallel programming technologies
21+
22+
The following parallel programming technologies are considered in practice:
23+
24+
- [Message Passing Interface (MPI)](https://www.mpi-forum.org/)
25+
- [OpenMP (Open Multi-Processing)](https://www.openmp.org/)
26+
- [oneAPI Threading Building Blocks (oneTBB)](https://github.com/oneapi-src/oneTBB)
27+
- [Multithreading in C++ (`std::thread`)](https://en.cppreference.com/w/cpp/thread/thread)
28+
29+
## Rules for submissions
2330

24-
### Rules for submissions:
25-
1. You are not supposed to trigger CI jobs by frequent updates of your pull request. First you should test you work locally with all the scripts (code style).
26-
* Respect others time and don't slow down the job queue
31+
1. You are not supposed to trigger CI jobs by frequent updates of your pull request.
32+
First you should test you work locally with all the scripts (code style).
33+
- Respect others time and don't slow down the job queue
2734
2. Carefully check if the program can hang.

docker/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
Changelog
2-
=========
1+
# Changelog
32

43
## ppc-ubuntu
54

65
### [1.1] - 2025-08-30
6+
77
- Update LLVM version to 21
88

99
### [1.0] - 2025-07-28
10+
1011
- Initial Ubuntu-based image

docs/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,68 @@
11
# Parallel Programming Course Documentation
22

3-
### How to make and test your changes
3+
## How to make and test your changes
44

55
1. Navigate to the project root directory:
6+
67
```bash
78
cd parallel_programming_course
89
```
910

1011
2. (Optional) Create a virtual environment:
12+
1113
```bash
1214
python3 -m venv venv
1315
```
1416

1517
3. Install the required dependencies (for the projects and the docs):
18+
1619
```bash
1720
pip install -r requirements.txt
1821
pip install -r docs/requirements.txt
1922
```
2023

2124
4. Configure the documentation build:
25+
2226
```bash
2327
cmake -S . -B build -DUSE_DOCS=ON
2428
```
2529

2630
5. Generate API documentation with Doxygen:
31+
2732
```bash
2833
doxygen Doxyfile
2934
```
3035

3136
6. Build the documentation:
37+
3238
```bash
3339
cmake --build build -t docs_html
3440
```
3541

3642
7. Update the documentation:
43+
3744
```bash
3845
cmake --build build -t docs_gettext
3946
# update documentation
4047
cmake --build build -t docs_update
4148
```
4249

4350
8. Re-build the documentation:
51+
4452
```bash
4553
cmake --build build -t docs_html
4654
```
4755

4856
9. Make local deployment of the changes:
57+
4958
```bash
5059
cd docs/_build/html
5160
python3 -m http.server 8080
5261
```
5362

54-
10. Open the documentation in your browser. Depending on your platform use `open` (macOS), `xdg-open` (Linux), or `start` (Windows):
63+
10. Open the documentation in your browser.
64+
Depending on your platform use `open` (macOS), `xdg-open` (Linux), or `start` (Windows):
65+
5566
```bash
5667
open http://localhost:8080/en # macOS
5768
xdg-open http://localhost:8080/en # Linux

scoreboard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ HTML table with columns: S (solution), A (acceleration), E (efficiency), D (dead
4141
- Due time is 23:59 MSK on the shown date.
4242
- File `data/deadlines.yml` can shift dates per item by integer day offsets (default 0). Example:
4343

44-
```
44+
```yaml
4545
threads:
4646
seq: 0 # no shift
4747
omp: -2 # 2 days earlier

0 commit comments

Comments
 (0)