@@ -35,8 +35,7 @@ My clean, typed, and tested solutions to LeetCode problems (Python 3.10+).
3535
3636### 💡 Что получает клонировавший:
3737- ✅ Все решения на ** Python ^3.10** с type hints
38- - ✅ Тесты для каждой задачи (` pytest ` )
39- - ✅ Автоматическая проверка стиля (` ruff ` )
38+ - ✅ Пре-коммит-хук для запуска тестов (` pytest ` ) & (` ruff ` )
4039- ✅ Автоматическое создание /feat ветки, файлов проблемы и теста
4140- ✅ Генерация файлов с контентом: условие задачи, сниппеты кода и примеры тестов (fetch from LeetCode API)
4241- ✅ Автообновляемый ` README.md ` с прогрессом и ссылками
@@ -53,11 +52,12 @@ My clean, typed, and tested solutions to LeetCode problems (Python 3.10+).
5352
5453This repo provides a production-grade setup for LeetCode practice:
5554- Typed, tested Python 3.10+ solutions
55+ - Pre-commit hook for running tests (` pytest ` ) & (` ruff ` )
5656- Automated README generation with progress bars
5757- Automated creation of /feat branch, problem and test files
5858- Automated generation of files with content: problem statement, code snippets, and test examples (fetch from LeetCode API)
5959- Smart cache management: automatic weekly refresh or on-demand
60- - Preconfigured CI (tests + linter) and CD (auto-update)
60+ - Preconfigured CI and CD (auto-update)
6161- No manual work — just solve, commit, PR
6262
6363⚠️ For proper README generation, internet access is required (to query LeetCode 'API' on first run).
@@ -78,7 +78,7 @@ cd LeetCode_solutions
7878
7979#### 2. Создай и активируй виртуальное окружение
8080``` bash
81- python -m venv .venv
81+ python3 -m venv .venv
8282```
8383Linux/Mac
8484``` bash
@@ -101,11 +101,11 @@ pytest && ruff check .
101101
102102#### 5. Используй скрипт обновления README (опционально)
103103``` bash
104- python scripts/update_readme.py
104+ python3 scripts/update_readme.py
105105```
106106Для принудительного обновления кэша задач используйте флаг ` --force-refresh-cache ` :
107107``` bash
108- python scripts/update_readme.py --force-refresh-cache
108+ python3 scripts/update_readme.py --force-refresh-cache
109109```
110110
111111- Кэш задач обновляется автоматически раз в неделю (от даты изменения файла problems_cache.json). Для принудительного обновления кэша задач используйте флаг --force-refresh-cache:
@@ -118,7 +118,7 @@ python scripts/update_readme.py --force-refresh-cache
118118#### 7. Используй скрипт → Решай новую задачу → делай push → PR → merge в main → CI/CD сделает всё остальное автоматически!
119119
120120``` bash
121- python3 scripts/create_problem.py < номер_задачи>
121+ make problem < номер_задачи>
122122```
123123
1241241 ) Скрипт создает новую ** /feat** ветку, а так же файлы решения и тестов минимизируя рутину
0 commit comments