Permalink
Browse files

run flake8 instead of pep8: fix variable name reuse

  • Loading branch information...
mapleoin committed Apr 3, 2013
1 parent 6f7b4a3 commit 40735188715920caeeb0381c61ed880da12d96a6
Showing with 11 additions and 11 deletions.
  1. +1 −1 .travis.yml
  2. +8 −9 git_tarballs
  3. +2 −1 test-requires
View
@@ -7,4 +7,4 @@ install:
- pip install -r test-requires --use-mirrors
script:
- nosetests
- - pep8 git_tarballs *py
+ - flake8 git_tarballs *py
View
@@ -272,21 +272,20 @@ if __name__ == '__main__':
args.filename, args.version_regexp)
if args.plain_version:
- package_commit = get_commit_from_spec(args.package, plain_version=True)
- package_version = upstream_version
+ pkg_commit = get_commit_from_spec(args.package, plain_version=True)
+ pkg_version = upstream_version
else:
- package_commit = get_commit_from_spec(args.package)
- package_version = package_version(upstream_version, upstream_commit)
- if not package_commit:
+ pkg_commit = get_commit_from_spec(args.package)
+ pkg_version = package_version(upstream_version, upstream_commit)
+ if not pkg_commit:
# on first run, we only set the fields in the spec file;
# there are no changes
- update_spec_files(package_version, tarball_parent_dir, args.filename)
+ update_spec_files(pkg_version, tarball_parent_dir, args.filename)
print "Initialized .spec file with git_tarball."
sys.exit()
- changes = create_changes(changes_list, package_version,
- package_commit, args.email)
+ changes = create_changes(changes_list, pkg_version, pkg_commit, args.email)
- update_spec_files(package_version, tarball_parent_dir, args.filename)
+ update_spec_files(pkg_version, tarball_parent_dir, args.filename)
if changes:
update_changes_file(args.package, changes)
View
@@ -1,3 +1,4 @@
mock
nose
-pep8
+flake8
+pep8-naming

0 comments on commit 4073518

Please sign in to comment.