You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Мы используем`poetry`в качесте менеджера зависимостей и упаковщика.
5
+
We use`poetry`as our dependency manager and packager.
6
6
7
-
1.Установить`poetry`. Советуем обратиться к разделу официальной документации [Installation with the official installer](https://python-poetry.org/docs/#installing-with-the-official-installer). Если кратко, то достаточно просто запустить команду:
7
+
1.Install`poetry`. We recommend referring to the official documentation section [Installation with the official installer](https://python-poetry.org/docs/#installing-with-the-official-installer). In short, you just need to run:
С этим расширением ошибки в кодстайле будут подчеркиваться прямо в редакторе.
25
+
With this extension, code style errors will be underlined directly in the editor.
26
26
27
-
В корень проекта добавлен файл `.vscode/settings.json`, который указывает расширению путь к конфигу линтера.
27
+
A `.vscode/settings.json` file has been added to the project root, which points the extension to the linter configuration.
28
28
29
29
## Contribute
30
30
31
-
1.Создать ветку, в которой вы будете работать. Чтобы остальным было проще понимать характер вашего контрибьюта, нужно давать краткие, но понятные названия начинающиеся. Советем начинать названия на `feat/`для веток с новыми фичами, `fix/`для исправления багов, `refactor/`для рефакторинга, `test/`для добавления тестов.
31
+
1.Create a branch for your work. To make it easier for others to understand the nature of your contribution, use brief but clear names. We recommend starting branch names with `feat/`for new features, `fix/`for bug fixes, `refactor/`for refactoring, and `test/`for adding tests.
32
32
33
-
2.Коммит, коммит, коммит, коммит
33
+
2.Commit, commit, commit, commit
34
34
35
-
3.Если есть новые фичи, желательно добавить для них тесты в директорию [tests](./tests).
35
+
3.If there are new features, it's advisable to add tests for them in the [tests](./tests) directory.
36
36
37
-
4. Проверить, что внесенные изменения не ломают имеющиеся фичи
37
+
4. You can open a PR!
38
+
39
+
Every commit in any PR triggers github actions with automated tests. All checks block merging into the main branch (with rare exceptions).
40
+
41
+
Sometimes waiting for CI can be long, and sometimes it's more convenient to run individual tests:
42
+
- Check that your changes don't break existing features
38
43
```bash
39
44
make test
40
45
```
41
-
42
-
5. Проверить кодстайл
46
+
Or run a specific test (using `test_bert.py` as an example):
47
+
```bash
48
+
poetry run pytest tests/modules/scoring/test_bert.py
49
+
```
50
+
- Check code style (it also applies formatter)
43
51
```bash
44
52
make lint
45
53
```
54
+
- Check type hints:
55
+
```bash
56
+
make typing
57
+
```
58
+
Note: If mypy shows different errors locally compared to github actions, you should update your local dependencies:
59
+
```bash
60
+
make update
61
+
```
46
62
47
-
6. Ура, можно открывать Pull Request!
48
-
49
-
## Устройство проекта
50
-
51
-

52
-
53
-
## Построение документации
63
+
## Building Documentation
54
64
55
-
Построить html версию в папке `docs/build`:
65
+
Build the HTML version in the `docs/build` folder:
0 commit comments