From d6bc16d40da2fdb3875af9b413b126e0191714c6 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 16 Jun 2019 16:02:33 -0700 Subject: [PATCH] Black Formatting - travis # --- ci/push.sh | 34 ++++++++++++++++++++++++++++++++++ pylint.svg | 23 +++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100755 ci/push.sh create mode 100644 pylint.svg diff --git a/ci/push.sh b/ci/push.sh new file mode 100755 index 0000000..8ce709f --- /dev/null +++ b/ci/push.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +setup_git() { + git config --global user.email "travis@travis-ci.org" + git config --global user.name "Travis CI" +} + +check_format() { + black hyperglass + git add hyperglass/ *.py + git commit --message "Black Formatting - travis #$TRAVIS_BUILD_NUMBER" +} + +run_pylint() { + python3 manage.py pylint-badge --integer-only True +} + +check_pylint() { + PYLINT_SCORE=$(run_pylint) + if [ "$PYLINT_SCORE" != "10.00" ]; + then + git add pylint.svg + git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER" + fi +} + +# upload_files() { +# git remote add origin-pages https://${GH_TOKEN}@github.com/MVSE-outreach/resources.git > /dev/null 2>&1 +# git push --quiet --set-upstream origin-pages gh-pages +# } + +check_format +check_pylint +# setup_git diff --git a/pylint.svg b/pylint.svg new file mode 100644 index 0000000..6c91630 --- /dev/null +++ b/pylint.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + pylint + pylint + + + 10.0 + 10.0 + + \ No newline at end of file