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

tests: enable flake8 #2778

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions .travis.yml
Expand Up @@ -24,7 +24,7 @@ jobs:
include:
# macOS is first to account for the delay in starting the build on macOS. This prevents the build from hanging on
# macOS as the last job to finish in a stage.
- stage: Cache
- stage: Lint
os: osx
language: generic
python: 3.6
Expand Down Expand Up @@ -58,8 +58,14 @@ jobs:
script: py.test -n 3 --maxfail 3 tests/functional/test_libraries.py tests/functional/test_hooks

- &cache
stage: Cache
stage: Lint
python: 2.7
script:
- >
if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then
git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH --depth 1;
flake8-diff -v -v -v $TRAVIS_BRANCH;
fi
- &test-pyinstaller
stage: Test - PyInstaller
python: 2.7
Expand Down
1 change: 1 addition & 0 deletions tests/requirements-tools.txt
Expand Up @@ -9,3 +9,4 @@ pytest-catchlog # Capture log output separately from stdout/stderr
pytest-drop-dup-tests # allows specifying order without duplicates

psutil # Better subprocess alternative with implemented timeout.
flake8-diff # Check new flake8 violations on pull requests