193 Commits

Author SHA1 Message Date
Robert Collins
b13c33caa0 Remove redundant deps in tox.ini.
Tox installs the current tree (either via an sdist or as a develop
install) always. Our requirements.txt are reflected into the metadata
of that tree, so we shouldn't use requirements.txt directly - it just
means that we'd be hiding from ourselves issues like e.g. using URLs
which can't be reflected properly.

Change-Id: Id096f1d1971cb8a19f9e86ba57957b39e00bd6f5
2015-10-16 14:30:59 +13:00
Davanum Srinivas
9537c85763 Use os-testr for py34 tox target
os-testr has a blacklist we can use to specify which
tests to avoid. It uses "testr run --parallel" so tests
are run in parallel as well. We also get rid of the
huge list of tests in tox.ini into a separate file.

<soap_box>
The reason for using a black list is that when new tests
are being added, they are automatically either fixed to
work under python34 or added to a well known list of
tests so whoever is working on python34 can try to fix
those tests over a period of time. Hoping really that
this black list shrinks over time quickly. This is also
a pool of low hanging tasks that folks when they have
some time to pull a few tests from here and fix them.
</soapbox>

Bumps number of tests executed from 5606 to 7206

Depends-On: Ib5e682d0380cf7bc5e288a1e4d125379b452fa92
Change-Id: Ib641bb0f7553eb7704b419b9d00f86174f6d831d
2015-09-30 19:53:53 -04:00
Davanum Srinivas
b4e86c8ea1 Identify more py34 tests that already pass
Couple of tiny fixes and we essentially double our py34
coverage.

Change-Id: I77355043d613b8b3b6789950302c54b16b690049
2015-09-29 08:03:24 -04:00
jichenjc
eef23489ee Pep8 didn't check api/openstack/common.py
flake8 rule in tox.ini has following
exclude rule is exclude = .venv,.git,.tox,dist,doc,*openstack/common*
which excludes api/openstack/common.py

Change-Id: I39b82cf90048970e7bfc6be77de2e1543130f81b
Closes-Bug: 1498634
2015-09-19 23:23:19 +08:00
Sachi King
ad38ce1fc9 Add constraint target to tox.ini
This adds a pip install command to tox.ini that is only used when the
tox env is passed with the 'constraints' factor appended onto it.
As such this will not effect developer workflows or current unit tests.

The initial use of this will be in a non-voting job, to verify that the
constrained checks with tox are stable.  DevStack is already running
constrained jobs, as such problems are no expected.

To run a tox with pip using constraints on a developer system a
developer should run the desired tox environment with -constraints.
For example: $(tox -epy27-constraints)
Pip will pull the current version of the upper-constraints.txt file down
from the git.openstack.org, however this method can be overriden to use
a local file setting the environment variable "UPPER_CONSTRAINTS_FILE"
to the local path or a different URL, it is passed directly to pip.

This is currently not enabled in the default tox run, however it is
possible to enable it as a default by adding it to 'envlist' in tox.ini

Depends-On: I17ac389f78af241917b6da7f049085f2b13d30f2
Change-Id: I8ea1710a4e3a287405978b467e0b2dfbb025b795
Implements Blueprint: Requirements-Management
2015-09-04 15:06:11 -07:00
Matt Riedemann
426a5ffa8e Remove doc/source/api and doc/build before building docs
doc/source/api and doc/build are build artifacts from building the docs
using the tox -e docs target. These are ignored in .gitignore since we
don't care about them from build to build - but leaving them around can
actually make the docs build fail if modules no longer exist but are
still sitting in these directories.

So this change just cleans those up each time you run tox -e docs.

Closes-Bug: #1488637

Change-Id: I646ae0b77a472c425d23815316e804b09bbe867d
2015-08-25 13:08:31 -07:00
Jenkins
4abb475327 Merge "Gate on nova.conf.sample generation" 2015-08-24 11:38:20 +00:00
Davanum Srinivas
6761726ee9 Gate on nova.conf.sample generation
If someone makes a change that breaks "tox -e genconfig"
it is not caught today by any of the gate/check jobs.
We should fail at least the docs job by running
oslo-config-generator to make sure it works.

Change-Id: I63fede4a7b5f358f2212383e2870cc64c4f9f1e4
2015-08-21 13:23:03 -04:00
Andrey Kurilin
9e78de9fa9 Re-write way of compare APIVersionRequest's
`cmp` method was removed in Python 3, so it would be nice to use __lt__,
__le__, __eq__, __ne__, __gt__ and __ge__ instead, which are Py2 and Py3
compatible.

Change-Id: I1c89da0831b77b73f55d8681fd7d946535cc89b5
2015-08-18 15:36:44 +03:00
Jenkins
2d7bfab667 Merge "Undo tox -e docs pip install sphinx workaround" 2015-07-31 16:06:40 +00:00
Matt Riedemann
1d5b6964d2 Undo tox -e docs pip install sphinx workaround
Now that we require at least pbr 1.3 and that has
commit 61a3a1ecdf99c680e509742fdc6c441b499af130 in it,
let's remove the workaround.

Change-Id: I4074b05a823d32f5db0051062527b0db4d379b62
Related-Bug: #1473401
2015-07-30 18:40:15 -07:00
Davanum Srinivas
ed0196ebb6 Get py34 subunit.run test discovery to work
Currently the tox py34 target uses testtools.run to run
a subset of our test harness. We need to be able to use
pretty_tox.sh just like py27 as we make progress with py34
support.

The first step is to make sure we can discover all the
tests using:
python -m subunit.run discover -t . ./nova/tests/ --list

So, we need to fix a bunch of things for the discovery
to work including updating to a new version of websockify.

In the xen code, we should keep the original import and
add except for py34 as xen uses an older python that does
not work with six.moves.

Depends-On: Ib4ef2e79b28b7180e564b3d6dc2188456c66c08a
Change-Id: I88b6746da6136a7386a173f6cacd42f0b470deee
2015-07-28 10:40:56 +00:00
Davanum Srinivas
5bb1933cc4 Enable python34 tests for nova/tests/unit/scheduler/test*.py
nova/pci/stats.py:
  need to specify a key parameter which is a function that returns
  a sorting key. since the original intention with pool_cmp was to
  sort by number of items in each pool, we just use key parameter
  with a lambda
nova/scheduler/filters/trusted_filter.py
nova/scheduler/host_manager.py
  needed list() so we could delete stuff inside the loop in py3
nova/tests/unit/scheduler/test_filter_scheduler.py
  needed the import of test as some tests were failing in py3,
  added noqa as test is not explicitly referenced within the
  module
nova/tests/unit/scheduler/test_scheduler_options.py
  need BytesIO for py3, StringIO will fail in many tests
nova/tests/unit/scheduler/test_scheduler_utils.py
  message is not available in py3, so we need to adjust
  use test.nested already added in a previous commit
nova/test.py
  if we have a key which is a list, treat it just like a set
nova/utils.py
  use reduce from six and explicitly typcast version_int as
  an integer

Change-Id: Ic862873f38767f12b990a030b5812ae50a44c4d0
2015-07-28 10:40:36 +00:00
Daniel P. Berrange
a7471dd773 tox: make it possible to run pep8 on current patch only
The 'tox -epep8' command takes a long time as it checks
every single file in the Nova git repository (~1,400 at
time of writing).

This makes tox use a simple wrapper around flake8 which
can be told to restrict the check to only files changed
in the current command. This can be invoked in a simple
manner with 'tox -epep8 -- -HEAD'. Since most commits
only touch a handful of files, this will usually be
far faster than checking all 1,400 source files.

To check an entire branch for bisectability it can be
automated via

  git rebase -i master -x 'tox -epep8 -- -HEAD'

Change-Id: I157d1ccb883ca02402eee51fd7d6a50f86079389
2015-07-24 16:15:38 +01:00
Jenkins
8a7665b6ba Merge "Add bandit for security static analysis testing" 2015-07-23 09:40:08 +00:00
Victor Stinner
0e5cefcf1d Fix Python 3 issues in nova.utils and nova.tests
* Fix sort(): dictionaries are no more comparable on Python 3, use a key
  function building a sorted list of the dictionary items
* Replace __builtin__ with six.moves.builtins
* get_hash_str() now accepts Unicode: Unicode is encoded to UTF-8
  before hashing the string. Mention also the hash method (MD5) in the
  docstring.
* LastBytesTestCase: use binary files instead of text files. Use also a
  context manager on the TemporaryFile to ensure that the temporary file
  is closed (even on error).
* Functions: use the __code__ attribute instead of func_code, and
  __closure__ instead of func_closure. These attributes are also
  available on Python 2.6.
* Replace unichr() with six.unichr()
* SafeTruncateTestCase(): write directly the chinese Unicode character
  instead of using safe_decode() (which is not reliable, it depends on
  the locale encoding!)
* sanitize_hostname(): On Python 3, decode the hostname from Latin1 to
  get back Unicode. Add also a comment explaining the purpose of the
  conversion to Latin1.
* last_bytes(): replace the hardcoded constant 22 with errno.EINVAL and
  add a comment explaining how the function works.
* tox.ini: add nova.tests.unit.test_utils to Python 3.4

Blueprint nova-python3
Change-Id: I96d9b0581ceaeccf9c35e0c9bada369e9d19fd15
2015-07-16 10:17:42 +02:00
Jenkins
3537513339 Merge "Port crypto to Python 3" 2015-07-16 02:01:05 +00:00
ghanshyam
4442979e71 Fix for mock-1.1.0
This includes 2 classes of fixes (and 1 skip) for mock.

The first is the change in allowed values for assert_has_calls -
https://github.com/testing-cabal/mock/issues/263

The second is a yet unsolved bug around the use of autospec
https://github.com/testing-cabal/mock/issues/264

The skip is because something has changed with mock.open that is
causing the vhduils test to fail. We don't know why, but it's one test
to skip.

This also includes a brute force fix for tox -e docs, because pip is
no longer respecting the sphinx pin in test requirements. This has to
be landed with the other changes because they won't work without it.

Change-Id: Id835d080a1ada52cbd3f24dad9bab5eeb2f29a54
Partial-Bug: 1473401
2015-07-10 10:18:19 -04:00
Victor Stinner
b2c55421d6 Port crypto to Python 3
Fix bytes vs Unicode issues:

* ssh_encrypt_text() now encodes text to UTF-8 if text type is Unicode.
* Encode Unicode to ASCII before encoding it to base64
* On Python 3, decode binascii.hexlify() and base64.encodestring()
  output from ASCII to get Unicode (str type in Python 3) is required.
* convert_from_sshrsa_to_pkcs8(): reuse binascii.hexlify() instead of
  a loop using struck.unpack() and "%02X" format.
* Replace str.encode('hex') with binascii.hexlify(str)
* Replace string.strip(text) with text.strip()
* Replace StringIO.StringIO with six.StringIO
* Add test on the output type of ssh_encrypt_text() and decrypt_text()
* Call utils.execute() with binary=True to not decode stdout/stderr
  (to get them as raw bytes).
* Replace reduce() with six.moves.reduce()
* convert_version_to_str(): replace a/b with a//b to get integer
  division
* tox.ini: add the following tests to Python 3.4

  - nova.tests.unit.compute.test_keypairs
  - nova.tests.unit.test_crypto

Blueprint nova-python3
Change-Id: I83d927166c0864020b205ac7495473795da7830d
2015-07-10 10:42:32 +02:00
Jenkins
0f80884ae0 Merge "Port test_exception to Python 3" 2015-07-10 03:10:57 +00:00
Jenkins
7543677f3a Merge "Enable python34 tests for nova/tests/unit/objects/test*.py" 2015-07-09 14:51:14 +00:00
Jeremy Stanley
5a6a30c434 Remove unneeded OS_TEST_DBAPI_ADMIN_CONNECTION
The desired OS_TEST_DBAPI_ADMIN_CONNECTION string is now reflected
in the oslo.db 1.12.0 release's default behavior, and so does not
need to be set any longer to achieve the same opportunistic backend
discovery for tests.

Change-Id: I1af372f6f18038e8fc63076b4e399d0ae86f5a23
2015-07-03 23:06:13 +00:00
Victor Stinner
ee4a2a4bb7 Port test_exception to Python 3
* FakeNovaException_Remote: on Python 3, define a __str__() method
  instead of __unicode__() method. str(exc) now calls __str__() now
  Pyton 3, __unicode__() is no more used.
* tox.ini: add nova.tests.unit.test_exception to Python 3.

Blueprint nova-python3
Change-Id: Ia3e3f253aa57b75a47f3ba044d2c539f9ce48aea
2015-07-03 11:17:45 +02:00
Eric Brown
e025404e69 Add bandit for security static analysis testing
This change adds a basic bandit config for Nova. It can be invoked
by running the tox environment for bandit;
    tox -e bandit

This is intended as a starting point for using bandit with Nova
and it should be revisited to improve the testing as more is learned
about the specific needs of the Nova code base.

Tox is configured to only show results for high and medium severity
results.

https://wiki.openstack.org/wiki/Security/Projects/Bandit

Change-Id: I3026b81317f0a6322acfc94784899a7453af586f
2015-07-02 09:17:48 -07:00
Davanum Srinivas
9f698dc296 Enable python34 tests for nova/tests/unit/objects/test*.py
All tests in nova/tests/unit/objects/test*.py now run with
python3.4 tox target.

* Fix imports in limits.py and urlmap.py
* Add a list() as keys()/values() return iterator in
  availability_zones.py, flavors.py and instance_numa_topology.py
* contextlib.nested is not present in python3, so whip up an
  alternative using ExitStack(). Directly using ExitStack() wont
  work for us.
* Add a few assertJsonEqual in the test cases
* Ensure fingerprinting generates the same exact value in both
  python27 and python34

Blueprint nova-python3
Change-Id: I848c48475189c4b4ad8151e14509020ae7d110a4
2015-07-01 20:29:42 +00:00
Robert Collins
e6333ef1ee Remove python3 specific test-requirements file.
With environment markers this is not needed, and it should fix
requirement syncing.

Change-Id: I9e32764417852ea65b28efe3c05d39865ebc5744
2015-07-02 08:14:24 +12:00
Victor Stinner
2daf8c38ad Fix Python 3 issues in nova.db.sqlalchemy
* Replace dict(obj.iteritems()) with dict(obj) where obj is a dictionary
  or an oslo.db object
* Replace obj.iteritems() with obj.items() where obj is a dictionary:
  obj.items() works on Python 2 and Python 3.
* Replace filter() and map() with list-comprehension using if when a list is
  expected. On Python 3, filter() and map() return an iterator.
* Replace obj.keys() with list(obj.keys()) when a list is expected.
  Replace obj.keys()[0] with list(obj.keys())[0]. On Python 3,
  dict.keys() now returns an iterator.
* Replace (int, long) with six.integer_types
* Get the name of a function using the __name__ attribute, instead of
  the func_name attribute. The func_name attribute was removed
  in Python 3.
* InstanceTypeTestCase: use dict.update() to combine dictionaries
  instead of using dict.items()+reduce()+dict()
* matchers.py: replace StringIO.StringIO with six.StringIO.
* tox.ini: add nova.tests.unit.db.test_db_api to Python 3.4

Blueprint nova-python3
Change-Id: Iae4f6d971818d5b38e838a83753a0707e954bb04
2015-06-30 07:06:54 -07:00
Davanum Srinivas
390fab8da4 Use oslo-config-generator instead of generate_sample.sh
Oslo team is actively getting rid of the old style generator.py
in openstack/common/config. So we should switch to the newer
oslo-config-generator which is the way forward. For simplicity's
sake, i used one single list_opts in opts.py. However we can
split this up and add entrypoints in setup.cfg if we decide to
do that instead.

blueprint oslo-config-generator

Change-Id: Ib7c72af7be47df08983708ac6da0ce103518b78c
2015-06-18 22:00:18 +00:00
Yuuichi Fujioka
2d02ebb775 pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.

This patch fix this problem.

Change-Id: If0bc42891a0714cc9b37b9c211388db20555ea7e
2015-06-10 12:30:39 +09:00
Jenkins
30564b9207 Merge "Force the value of LC_ALL to be en_US.UTF-8" 2015-06-01 14:18:15 +00:00
Ian Cordasco
19543c983f Force the value of LC_ALL to be en_US.UTF-8
On Python 3, if LC_ALL is not passed then the interpreter will assume it
is C (which causes the interpreter to use ASCII). This, in turn, causes
the unicode in the README.rst for rfc3986 to trigger a UnicodeDecodeError
exception.

jlvillal (John Villalovos) pointed out
I340c88ea7d098ca5943d60adc73f63a0af79a405 in IRC as the fix to this bug.

Closes-bug: 1460206
Change-Id: If05e3fe76450c06431413f63e46e154cf44fc1cf
2015-05-29 17:52:20 -05:00
Matt Riedemann
5aa65639bf Remove hash seed comment from tox.ini
Commit 7fc0dc05684a10b205212e6e96d9e0298b91c73a removed the
PYTHONHASHSEED environment variable usage so the comment no longer
applies.

Change-Id: I82591c6de9f81d1f72ba99d4fe9561ff60aefac6
2015-05-29 14:43:56 -07:00
Victor Stinner
f0082849df Fix version unit test on Python 3
With this change, "tox -e py34" now pass.

Changes:

* Replace unichr() with six.unichr()
* Replace StringIO.StringIO() with six.Bytes() in
  nova.crypto.generate_key_pair()
* On Python 3, replace UserDict.IterableUserDict with
  collections.UserDict
* Replace __builtin__.open with six.moves.builtins.open
* Replace ConfigParser import with six.moves.configparser
* On Python 3, get the original "queue" module instead of the "Queue"
  module in nova/virt/libvirt/host.py
* Replace urllib2 with six.moves.urllib
* tox.ini: "tox -e py34" now only runs nova.tests.unit.test_versions

Blueprint nova-python3
Change-Id: I056769c7c5b32276894f7aade8c0a27af81c42ae
2015-05-25 13:33:59 +02:00
Victor Stinner
3b7ed9d286 Run tests with PyMySQL on Python 3
Add test-requirements-py3.txt to use PyMySQL, instead of MySQL-python,
on Python 3.

Add a py34 test environment to tox.ini which uses
test-requirements-py3.txt and sets OS_TEST_DBAPI_ADMIN_CONNECTION to use
the PyMySQL connector instead of the MySQL-python connector.

This change is based on Ironic tox.ini, so I added Victor Sergeyev as
the coauthor of the patch.

Co-Authored-By: Victor Sergeyev <vsergeyev@mirantis.com>
Blueprint nova-python3
Change-Id: I5a27c7d627105b614da3cab3a87296a8e186b555
2015-05-22 23:58:50 -07:00
Matt Riedemann
9a69ad82c0 Fix pip-missing-reqs
The gate-nova-pip-missing-reqs job on the experimental queue is failing
and pointing out several missing runtime dependencies from
requirements.txt.

Also, we need to ignore the nova/test.py file during the scan since
pip-missing-reqs doesn't include test-requirements.txt.

requests
--------
nova/scheduler/filters/trusted_filter.py:50 dist=requests
nova/api/ec2/__init__.py:30 dist=requests

prettytable
-----------
nova/openstack/common/cliutils.py:29 dist=prettytable

python-keystoneclient
---------------------
nova/context.py:22 dist=python-keystoneclient
nova/network/neutronv2/api.py:21 dist=python-keystoneclient
nova/compute/manager.py:42 dist=python-keystoneclient
nova/volume/cinder.py:27 dist=python-keystoneclient
nova/context.py:23 dist=python-keystoneclient
nova/network/neutronv2/api.py:23 dist=python-keystoneclient
nova/network/neutronv2/api.py:24 dist=python-keystoneclient
nova/volume/cinder.py:28 dist=python-keystoneclient
nova/keymgr/barbican.py:25 dist=python-keystoneclient
nova/network/neutronv2/api.py:22 dist=python-keystoneclient

netifaces
---------
nova/compute/utils.py:21 dist=netifaces

setuptools
----------
nova/openstack/common/versionutils.py:26 dist=setuptools
nova/virt/xenapi/image/bittorrent.py:18 dist=setuptools

Closes-Bug: #1453857

Change-Id: If880d76cf3e47c14b370d63313330996e09f5ab8
2015-05-14 11:37:28 -07:00
Timofey Durakov
7fc0dc0568 Removed 'PYTHONHASHSEED=0' from tox.ini
As all bugs, related with that random
PYTHONHASHSEED fixed, final patch removes that
from tox.ini

Change-Id: Ice3920d1290bef46805842734d5bc1e381baf5ec
Closes-Bug: #1348818
2015-04-29 11:09:36 +03:00
Sean Dague
2615ff0651 default tox cmd should also run 'functional' target
The default tox cmd should also run the 'functional' target, this got
missed in adding that sub target.

Change-Id: I9a10b0c9798d9f90db03991c45b9f2b285d1e4d0
2015-03-20 11:43:59 -04:00
Gary Kotton
6bc7e271b5 Tox: reduce complexity level to 35
The max-complexity is now set at 35. We are unable to lower this due to
the following offenders:
./nova/virt/xenapi/vmops.py:431:1: C901 'VMOps._spawn' is too complex (34)
./nova/network/manager.py:1226:1: C901 'NetworkManager._do_create_networks' is too complex (34)
./nova/network/neutronv2/api.py:370:1: C901 'API.allocate_for_instance' is too complex (34)

Change-Id: I6101dcb594b88d346edd72eea2ef2250c4e2891f
2015-03-18 09:06:35 -07:00
Matt Riedemann
3c65f3ae0e Force LANGUAGE=en_US in test runs
If your native locale is not en_US and you run tests, some will fail due
to the message translation that happens since the assertion messages are
in en_US (not translated, just hard-coded in the tests).

I recreated the bug by setting LANGUAGE=en_GB in my tox.ini and tested
against nova.tests.unit.api.openstack.test_wsgi.

Note that setting LANG=en_US had no effect.

Closes-Bug: #1427745

Change-Id: Ib1c71d0d4170ba1a7ed2fe3eaf0e2d8071ec01d6
2015-03-03 09:00:05 -08:00
Davanum Srinivas
066cfa3352 Revert : Switch off oslo.* namespace check temporarily
In I7033847bab82b6d3cd8f2bdb66c553fec93d7acb, we disabled
N333 to allow changes in flight to still mix up oslo_ and
oslo. based imports. We should revert the change and enforce
every review use just the oslo_ version from now on.

Change-Id: I1db83048c569bcdd62538cce9df076fc355f7b26
2015-02-25 08:56:34 -05:00
Davanum Srinivas
c9e79ea94a Switch off oslo.* namespace check temporarily
There's lot of code in flight that will break if we switch
on the asserts to error out pep8/flake8 right now. So
we should temporarily switch it off. Doing this as a separate
review so it's easy to revery and stands out on its own.

Change-Id: I7033847bab82b6d3cd8f2bdb66c553fec93d7acb
2015-02-06 06:18:02 -05:00
Matt Riedemann
19e376a3f6 Remove H238 comment from tox.ini
Commit a8a87900cf99e8759849a274d5ac19baa2e7f0f7 removed
H238 from the flake8 ignore list but missed removing the
comment about why we were ignoring it in the first place.

Change-Id: I1fd89aafeea50bead18c8bf4ffdc7577ded2bde3
2015-01-26 09:04:16 -08:00
Davanum Srinivas
aff3e8699a Cleanup bad JSON files
- Add missing commas
- Replace single quote with double quote
- events field contains a list of events (event-create-req.json)
- Remove empty files
- Adds a JSON validation test to the docs pipeline

Co-Authored-By: Nicolas Simonds <nic@metacloud.com>
Change-Id: I9a4a9b6b8e2da73b5f25145be3b2faa44ebdb340
2015-01-22 11:46:05 -08:00
Sergey Nikitin
a8a87900cf Enable check for H238 rule
Fix H238 failures and enable check for H238

H238 old style class declaration, use new style
(inherit from `object`)

Change-Id: I71dd353ab260a513c5df5af0ee07754e23878570
2015-01-20 18:05:47 +03:00
EdLeafe
f53183e2ac Reduce complexity of the _get_guest_config method.
The _get_guest_config() method of libvirt's driver.py is currently the
worst offender in nova. This patch refactors the method to reduce the
complexity of the method from 40 (originally; it has since been dropped
to 35 by other patches) down to 24. With this change, the highest
complexity method is 37, so we can lower the limit in tox.ini to 38.

Change-Id: I05de301bc3dfd84ed15ce3cbb8a7c50f2d1385ed
2015-01-19 17:16:16 +00:00
EdLeafe
8a00ab4312 Reduce the complexity of the create() method.
This is a refactor designed to reduce the cyclomatic complexity of the
current worst offender in nova: the servers.create() method of the nova
API. The complexity of the method was 46; it is now 22.

No logic changes were made.

This builds on the effort started with Change 129125 by Joe Gordon.

Closes-Bug: 1403586

Change-Id: Ib102091773f786b8c8dc5b79c6d776418ed1d57d
2015-01-14 17:52:11 +00:00
Joe Gordon
0150222387 Enable W292
W292 no newline at end of file

W292 started failing with hacking 0.10.0, fix all cases and gate on the
rule.

Change-Id: I6196e8059e71730cc567d4dd211264cdd2272c40
2015-01-10 21:45:08 +00:00
Joe Gordon
3aaefad0d2 Fix and re-gate on H306
H306, alphabetical imports, was mistakenly skipped in
f96ec4411ce89606cf52211061003c14306dcfa1

Change-Id: I16db4600107b1f8f54b9f46a8552331612859346
2015-01-10 21:45:08 +00:00
Joe Gordon
b39df562c7 Move to hacking 0.10
Release notes:
http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

* Remove references in tox.ini to removed rules
* Fix minor changes (H501)
* Clarify that H306 (imports in alphabetical order shouldn't be skipped)
* Ignore H238: check for old style class declarations
* Temporary skip W292, fix in next patch.

Change-Id: I6d990a564df6a312bd09b2a152315bbdba732082
2015-01-10 21:45:08 +00:00
Daniel P. Berrange
72de6ac4f0 remove all traces of pylint testing infrastructure
The pylint tests have been broken for several months and
the Jenkins job has also been disabled. There has been
no sign of attempts to address this, so just delete what
remains of the pylint support so developers don't mistakenly
think it is supposed to work with patches they are submitting.

Change-Id: Ifacc99e45acb0e9a72be6c31113e0cf073354f02
2015-01-08 11:56:45 +00:00