Просмотр исходного кода

don't run pycodestyle on node_modules directory

checktheroads 4 лет назад
Родитель
Сommit
10d1378277
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/git-hooks/pre-commit

+ 1 - 1
scripts/git-hooks/pre-commit

@@ -23,7 +23,7 @@ if [ -d ./venv/ ]; then
 fi
 
 echo "Validating PEP8 compliance..."
-pycodestyle --ignore=W504,E501 netbox/
+pycodestyle --ignore=W504,E501 --exclude=node_modules netbox/
 if [ $? != 0 ]; then
 	EXIT=1
 fi