Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Replace pep8 by flake8 and separate linting stage on Travis #162

Merged
merged 3 commits into from
Feb 26, 2019

Conversation

oakbani
Copy link
Contributor

@oakbani oakbani commented Jan 11, 2019

Summary

This implements flake8 which is a wrapper over pyflakes, pycodestyle(PEP8), and circular complexity checks.

Also, the linting stage has been separated so that it immediately fails the build rather than creating separate environments for multiple python versions and failing all the jobs for the same reason.

Test plan

Issues

@oakbani oakbani requested a review from a team January 11, 2019 10:23
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0002%) to 99.695% when pulling 15e06ec on oakbani/replace-pep8-by-flake8 into e03b60b on master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0002%) to 99.695% when pulling 15e06ec on oakbani/replace-pep8-by-flake8 into e03b60b on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0002%) to 99.695% when pulling 15e06ec on oakbani/replace-pep8-by-flake8 into e03b60b on master.

@coveralls
Copy link

coveralls commented Jan 11, 2019

Coverage Status

Coverage decreased (-0.0002%) to 99.691% when pulling a504ae6 on oakbani/replace-pep8-by-flake8 into a6709f2 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0002%) to 99.695% when pulling 15e06ec on oakbani/replace-pep8-by-flake8 into e03b60b on master.

Copy link
Contributor

@aliabbasrizvi aliabbasrizvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Thanks.

LGTM.

.travis.yml Outdated
@@ -8,7 +8,7 @@ python:
- "pypy"
- "pypy3"
install: "pip install -r requirements/core.txt;pip install -r requirements/test.txt"
before_script: "pep8"
before_script: skip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. This can be removed right?

.travis.yml Outdated
@@ -17,12 +17,21 @@ after_success:

# Integration tests need to run first to reset the PR build status to pending
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this comment.

Copy link
Contributor

@msohailhussain msohailhussain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aliabbasrizvi aliabbasrizvi merged commit a3b46a2 into master Feb 26, 2019
@aliabbasrizvi aliabbasrizvi deleted the oakbani/replace-pep8-by-flake8 branch February 26, 2019 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants