add hacking.py rule to prevent docstrings
add new rule for hacking.py to catch and prevent docstrings on
test_ functions in the tempest/test directory. Found 2 oddballs
that I missed on the last conversion.
update ./run_tests.sh to not ingore all N4* errors (basically all
our custom rules), 401 and 402 still ignored because we actually
have a lot of errors on both of those.
Change-Id: I894d181433b7dcd1a9f4429f1a463be75018f05e
diff --git a/run_tests.sh b/run_tests.sh
index 0df8a99..fd7da88 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -77,9 +77,9 @@
srcfiles+=" `find tools -type f -name "*.py"`"
srcfiles+=" setup.py"
- ignore='--ignore=N4,E121,E122,E125,E126'
+ ignore='--ignore=N401,N402,E121,E122,E125,E126'
- ${wrapper} python tools/hacking.py ${ignore} ${srcfiles}
+ ${wrapper} python tools/hacking.py ${ignore} ${srcfiles}
}
NOSETESTS="nosetests $noseargs"