Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
[flake8] Introduce flake8 for testing and ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Apr 3, 2016
1 parent 3f942ec commit 3ea2253
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -13,7 +13,7 @@ install:
- "pip freeze"

script:
- python setup.py test
- python setup.py test -a "$PYTEST_ARG"

after_success:
- coveralls
Expand All @@ -24,6 +24,9 @@ notifications:
- https://webhooks.gitter.im/e/7498c1d7f0e50c212e1a

matrix:
include:
- python: "3.5.1"
env: PYTEST_ARG=--flake8
allow_failures:
- python: "nightly"
- python: "3.5" # maybe there is a bug of sqlite3 in 3.5.0
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -19,7 +19,8 @@ def get_zdict_version():
return version

def get_test_req():
reqs = ['coverage', 'pytest', 'pytest-cov', 'pyjokes']
reqs = ['coverage', 'pytest', 'pytest-cov', 'pyjokes', 'flake8',
'pytest-flake8']

if not sys.platform.startswith('freebsd'):
reqs.append('gnureadline')
Expand Down

0 comments on commit 3ea2253

Please sign in to comment.