From 67982062a20e138343a1cb9b5753f2bc709db2ff Mon Sep 17 00:00:00 2001 From: Alexandr Notchenko Date: Fri, 30 Aug 2013 17:25:09 +0400 Subject: [PATCH] hopefully last doc fix --- docs/develop/env.rst | 2 +- nailgun/run_tests.sh | 3 +++ requirements-eggs.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/develop/env.rst b/docs/develop/env.rst index 88347a942e..063bff1f94 100644 --- a/docs/develop/env.rst +++ b/docs/develop/env.rst @@ -32,7 +32,7 @@ Setup for Nailgun Unit Tests sudo apt-get install python-dev python-pip python-psycopg2 python-jinja2 sudo apt-get install python-paste python-yaml python-sqlalchemy python-kombu sudo apt-get install python-crypto python-simplejson python-webpy python-nose - sudo pip install fysom jsonschema + sudo pip install fysom jsonschema hacking==0.7 #. Install and configure PostgreSQL database:: diff --git a/nailgun/run_tests.sh b/nailgun/run_tests.sh index d81de12dd3..d0a8d59241 100755 --- a/nailgun/run_tests.sh +++ b/nailgun/run_tests.sh @@ -81,6 +81,9 @@ if [ $fail_first -eq 1 ]; then fi function run_flake8 { + # H302 - "import only modules. does not import a module" requires to import only modules and not functions + # H802 - first line of git commit commentary should be less than 50 characters + # urls.py,__init__.py - are exclude because they don't comply with pep standard flake8 --exclude=urls.py,__init__.py --ignore=H302,H802 --show-source --show-pep8 --count . || return 1 echo "Flake8 check passed successfully." } diff --git a/requirements-eggs.txt b/requirements-eggs.txt index f7a94cf08b..5b85226272 100644 --- a/requirements-eggs.txt +++ b/requirements-eggs.txt @@ -24,4 +24,4 @@ tornado==3.0 web.py==0.37 wsgilog==0.3 wsgiref==0.1.2 -hacking>=0.6,<0.8 \ No newline at end of file +hacking==0.7 \ No newline at end of file