Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 9 additions and 5 deletions.
  1. +1 −1 .travis.yml
  2. +6 −3 github_tarballs
  3. +2 −1 test-requires
View
2 .travis.yml
@@ -7,4 +7,4 @@ install:
- pip install -r test-requires --use-mirrors
script:
- nosetests
- - pep8 github_tarballs *py
+ - flake8 github_tarballs *py
View
9 github_tarballs
@@ -27,7 +27,8 @@ import urllib
GITHUB_CREDS = ".github_tarballs_credentials"
COMMIT_HASH_SIZE = 7
-GITHUB_COMPARE = "https://%(creds)sapi.github.com/repos/%(owner)s/%(repo)s/compare/%(base)s...%(head)s"
+GITHUB_COMPARE = ("https://%(creds)sapi.github.com/repos/"
+ "%(owner)s/%(repo)s/compare/%(base)s...%(head)s")
def github_credentials():
@@ -144,7 +145,8 @@ def create_changes(git_compare, package_version, email):
message = '- Start using obs-service-github_tarballs\n'
change = (
- '--------------------------------------------------------------------\n'
+ '-----------------------------------'
+ '---------------------------------\n'
'%(timestamp)s - %(email)s\n'
'\n%(message)s\n' % locals())
@@ -227,7 +229,8 @@ if __name__ == '__main__':
download_tarball(args.url, args.filename)
- tarball_parent_dir, upstream_version = get_parent_dir_and_version_from_tarball(args.filename)
+ tarball_parent_dir, upstream_version = \
+ get_parent_dir_and_version_from_tarball(args.filename)
git_compare = get_changes(args.package, args.repo_owner,
args.repo_name, args.target)
View
3 test-requires
@@ -1,3 +1,4 @@
mock
nose
-pep8
+flake8
+pep8-naming

No commit comments for this range

Something went wrong with that request. Please try again.