sef
This commit is contained in:
1 parent
7502cf513c
commit
85b0d7f365
4 files changed
+22
-1
No files matched your search
@@ -2,3 +2,23 @@
|
||||
# docker-compose run --rm frontend npx lint-staged
|
||||
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
|
||||
Generated
-1
@@ -4,7 +4,6 @@
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"commitlint": "^19.7.1"
|
||||
},
|
||||
|
||||
@@ -10,6 +10,7 @@ from rest_framework_simplejwt.views import (
|
||||
|
||||
urlpatterns = [
|
||||
|
||||
|
||||
path('links/', CaorusAPIView.as_view(), name='CaorusAPIView'),
|
||||
|
||||
|
||||
|
||||
@@ -109,6 +109,7 @@ export default {
|
||||
},
|
||||
|
||||
setup(props, { emit }) {
|
||||
console.log("sd")
|
||||
const filtered = ref('');
|
||||
const accountStore = useAccountStore();
|
||||
const back = ref([]);
|
||||
|
||||
Reference in new issue
Block a user