From cbf031575a4d02054aca79ec936df85d9c25ae73 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 19 2014 09:04:13 +0000 Subject: pep8 fixes --- diff --git a/progit/app.py b/progit/app.py index d02cf66..5851e15 100644 --- a/progit/app.py +++ b/progit/app.py @@ -154,6 +154,7 @@ def new_project(): form=form, ) + @APP.route('/') def view_repo(repo): """ Front page of a specific repo. @@ -167,7 +168,8 @@ def view_repo(repo): last_commits = [] tree = [] if not repo_obj.is_empty: - for commit in repo_obj.walk(repo_obj.head.target, pygit2.GIT_SORT_TIME): + for commit in repo_obj.walk( + repo_obj.head.target, pygit2.GIT_SORT_TIME): last_commits.append(commit) cnt += 1 if cnt == 10: diff --git a/progit/fork.py b/progit/fork.py index 67f452c..c2b1867 100644 --- a/progit/fork.py +++ b/progit/fork.py @@ -32,18 +32,18 @@ def fork_project(repo): if not os.path.exists(reponame): flask.abort(404) - forkreponame = os.path.join( + forkreponame = os.path.join( APP.config['FORK_FOLDER'], flask.g.fas_user.username, repo) if os.path.exists(forkreponame): - flask.flash('Repo "%s/%s" already exists' % - (flask.g.fas_user.username, repo)) + flask.flash('Repo "%s/%s" already exists' % ( + flask.g.fas_user.username, repo)) else: pygit2.clone_repository(reponame, forkreponame) - flask.flash('Repo "%s" cloned to "%s/%s"' % - (repo, flask.g.fas_user.username, repo)) + flask.flash('Repo "%s" cloned to "%s/%s"' % ( + repo, flask.g.fas_user.username, repo)) return flask.redirect( flask.url_for('view_user', username=flask.g.fas_user.username)