diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..6deafc2 --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 120 diff --git a/.travis.yml b/.travis.yml index dbc49fc..1988b50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,17 @@ language: python + python: - "2.7" + install: - pip install -r requirements.txt + script: - py.test + - py.test --flake8 + - py.test --cov=vk + - py.test --cov=user_photo --cov-append + - py.test --cov=ya_translate --cov-append + +after_success: + - coveralls diff --git a/requirements.txt b/requirements.txt index 4f7bdea..980991c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,5 @@ requests mock +pytest-cov +pytest-flake8 +coveralls