Fix things to actually work in the gate

- Remove bashate section as it's causing flake8 to puke
  and remove the py26 tox env, as that no longer exists and
  is used anyway.
- Unlock the pylint version, since it appears to not be
  working anymore, and a newer version should
  be working.

Change-Id: If57bd386d86fc0f7041ac91bd225d2a272e471cb
This commit is contained in:
Joshua Harlow 2016-04-18 14:06:53 -07:00
parent 1bbe7a5059
commit a2cf1a6f29
5 changed files with 8 additions and 50 deletions

View File

@ -15,8 +15,7 @@
# under the License.
# R0902: Too many instance attributes
# R0921: Abstract class not referenced
#pylint: disable=R0902,R0921
#pylint: disable=R0902
import functools

View File

@ -31,6 +31,7 @@ dependency_handler:
pyscss: python-scss
ignoreable_pips:
- distribute # distribute has been replaced by setuptools
- trollius # this project is dead/deprecated...
arch_dependent:
- PuLP
- cryptography

View File

@ -24,45 +24,15 @@ load-plugins=
[MESSAGES CONTROL]
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time.
#enable=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifier separated by comma (,) or put this option
# multiple time.
# http://pylint-messages.wikidot.com/all-codes
# I0011: Locally disabling %s
# I0012: Locally enabling %s
# I0013: Ignoring entire file
# C0111: Don't require docstrings on every method
# E0213: We want different names for 'self', e. g. 'inner_self'
# E0611: No name in module -- test cover that
# E1002: Use super on an old style class
# E1101: Mocks make pylint type deduction crazy
# E1103: When some types could not be inferred, we ignore pylint
# F0401: Unable to import smth -- test cover that
# R0201: Method could be a function
# TODO(aababilov): remove similar lines
# R0801: Similar lines in %s files
# R0912: Too many branches (huh)
# R0914: Too many local variables is odd.
# R0921: Abstract class is not referenced
# R0922: Abstract class is only referenced %s times
# W0141: Used builtin function %r
# W0142: *args and **kwargs are fine.
# W0212: Access to a protected member %s of a client class
# W0223: Don't want to override all the abstract methods
# W0232: Our models have no __init__ methods, but this is OK
# W0401: Wildcard imports are fine
# W0511: TODOs in code comments are fine.
# W0603: Using the global statement
# W0613: Unused argument '??' should be ok (they are useful sometimes to know intention of variable)
# W0622: Redefining id is fine.
# W0702: No exception type(s) specified
# W0703: Catching "Exception" is fine if you need it
disable=I0011,I0012,I0013,C0111,E0213,E0611,E1002,E1101,E1103,F0401,R0201,R0801,R0912,R0914,R0921,R0922,W0141,W0142,W0212,W0223,W0232,W0401,W0511,W0603,W0613,W0622,W0702,W0703,C0325,C0330,W1401,E0712
disable=I0011,I0012,I0013,C0111,C0123,C0411,C0412,E0213,E0611,
E1002,E1101,E1103,F0401,R0201,R0204,R0801,R0912,R0914,R0921,R0922,
W0141,W0142,W0212,W0223,W0232,W0401,W0511,W0603,W0613,W0622,
W0702,W0703,C0325,C0330,W1401,E0712
[REPORTS]

View File

@ -1,4 +1,4 @@
pylint==1.4.1
pylint
hacking>=0.10.0,<0.11
mock>=1.0
nose

14
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
skipdist = True
envlist = py26,py27,pep8,pylint,bashate
envlist = py27,pep8,pylint,bashate
[testenv]
usedevelop = True
@ -29,18 +29,6 @@ commands = flake8 {posargs}
[testenv:pylint]
commands = pylint --rcfile=pylintrc anvil
[testenv:bashate]
deps = bashate
whitelist_externals = bash
commands = bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
-type f \ # only files
\( \
-name \*.sh -or \ # all .sh files
-path \*smithy \ # smithy
\) \
-print0 | xargs -0 bashate -v"
[testenv:venv]
commands = {posargs}