Skip to content

Commit

Permalink
Reintroduce flake8 into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelAquilina committed Sep 30, 2017
1 parent 3cc111a commit 6d9822b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ python:
- "3.5"
- "3.6"
- "3.7-dev"
install: pip install tox-travis codecov
install: pip install tox-travis codecov flake8
script:
- tox
- flake8 s4 tests
- pip install . && s4 version
after_success:
- codecov
Expand Down
3 changes: 1 addition & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# -*- coding: utf-8 -*-

import argparse
import io
import json
import logging
import os
import tempfile
from datetime import datetime

from inotify_simple import flags, Event
from inotify_simple import Event, flags
import mock
import pytest
import pytz
Expand Down
9 changes: 2 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
[tox]
envlist = py33, py34, py35, py36, py37, flake8

[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 s4 tests
envlist = py33, py34, py35, py36, py37

[testenv]
passenv = CI TRAVIS TRAVIS_*
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/s3backup
PYTHONPATH = {toxinidir}:$PYTHONPATH
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
Expand Down

0 comments on commit 6d9822b

Please sign in to comment.