chore [P-01]: Докер

This commit is contained in:
Nukeap committed 2025-02-24 13:57:27 +03:00
1 parent 29cf9b2a14
commit bc6668c54c
225 files changed
+398 -1409

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
# npm run commitlint --edit ${1}
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env sh
# docker-compose run --rm frontend
# docker-compose -f docker-compose.lint.yml run --rm frontendlint
# npm run lint-staged
# #
# # Проверяем наличие pylint
# if ! [ -x "$(command -v pylint)" ]; then
# echo 'Error: pylint is not installed.' >&2
# exit 1
# fi
# # Получение списка всех Python-файлов, подготовленных для коммита
# files=$(git diff --cached --name-only --diff-filter=ACM | grep '\.py$')
# # Если нет Python-файлов, выход
# if [ -z "$files" ]; then
# exit 0
# fi
# # Запуск pylint для всех подготовленных Python-файлов
# pylint $files
# if [ $? -ne 0 ]; then
# echo "Pylint found issues. Commit aborted."
# exit 1
# fi