Skip to content

Commit

Permalink
update Fabric version to 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tp7309 committed Jul 2, 2018
1 parent d23eeaf commit d8b04a9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Place your settings in this file to overwrite default and user settings.
{
"python.pythonPath": "C:\\Users\\jerrywangr\\AppData\\Local\\conda\\conda\\envs\\py36\\python.exe"
"python.pythonPath": "C:\\ProgramData\\Anaconda3\\python.exe"
}
36 changes: 21 additions & 15 deletions fabfile.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
from fabric.api import local
from invoke import task
import os


def lint():
local("flake8 .")
local("yapf --style pep8 -i -r .")
@task
def lint(c):
os.system("flake8 .")
# os.system("yapf --style pep8 -i -r .")


def test():
local("nosetests")
@task
def test(c):
os.system("nosetests")


def commit():
local("git add -A && git commit")
@task
def commit(c):
os.system("git add -A && git commit")


def push():
local("git push")
@task
def push(c):
os.system("git push")


def done():
lint()
test()
commit()
push()
@task
def deploy(c):
lint(c)
test(c)
commit(c)
push(c)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Fabric3==1.13.1.post1
Fabric==2.1.3
tqdm>=4.23
click==6.7

0 comments on commit d8b04a9

Please sign in to comment.