From 4ff5fc331188e4c4680b182383237f7db21f33ef Mon Sep 17 00:00:00 2001 From: Eliseu Egewarth Date: Mon, 14 May 2018 10:15:33 -0300 Subject: [PATCH] =?UTF-8?q?Modificando=20script=20fix=5Fqa.sh=20para=20exe?= =?UTF-8?q?cutar=20sempre=20na=20raiz=20do=20reposit=C3=B3rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eliseu Egewarth --- fix_qa.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fix_qa.sh b/fix_qa.sh index 264c01676..cb0f24001 100755 --- a/fix_qa.sh +++ b/fix_qa.sh @@ -8,5 +8,7 @@ # Uma forma simples de fazer isso é adicionando antes suas mudanças à # "staging area" do git, com `git add .` e após usar o script `git diff`. +git_project_root=$(git rev-parse --show-toplevel) +cd ${git_project_root} isort --recursive --skip='migrations' --skip='templates' --skip='ipython_log.py*' . autopep8 --in-place --recursive . --exclude='migrations,ipython_log.py*'