Release notes for 0.14.0
There has not been a hacking release in some time. This release is done at the very beginning of the Queens cycle to reduce disruption as much as possible and give plenty of time to solve any issue that may arise or enabling new rules that are disabled by default. Change-Id: If9a54a0b2c07f91ff2f503f1159ff0d23946e2d9
This commit is contained in:
parent
1eea81171a
commit
d842b77cab
12
HACKING.rst
12
HACKING.rst
@ -311,6 +311,18 @@ exception possible should be used.
|
||||
``assertIsNotNone(...)`` is preferred over ``assertNotEqual(None, ...)``
|
||||
and ``assertIsNot(None, ...)``. Off by default.
|
||||
|
||||
- [H204] Use assert(Not)Equal to check for equality.
|
||||
Unit test assertions tend to give better messages for more specific
|
||||
assertions. As a result, ``assertEqual(...)`` is preferred over
|
||||
``assertTrue(... == ...)``, and ``assertNotEqual(...)`` is preferred over
|
||||
``assertFalse(... == ...)``. Off by default.
|
||||
|
||||
- [H205] Use assert(Greater|Less)(Equal) for comparison.
|
||||
Unit test assertions tend to give better messages for more specific
|
||||
assertions. As a result, ``assertGreater(Equal)(...)`` is preferred over
|
||||
``assertTrue(... >(=) ...)``, and ``assertLess(Equal)(...)`` is preferred over
|
||||
``assertTrue(... <(=) ...)``. Off by default.
|
||||
|
||||
- [H210] Require ``autospec``, ``spec``, or ``spec_set`` in ``mock.patch()`` or
|
||||
``mock.patch.object()`` calls (off by default)
|
||||
|
||||
|
@ -95,6 +95,8 @@ Some of the available checks are disabled by default. These checks are:
|
||||
|
||||
- [H106] Don't put vim configuration in source files.
|
||||
- [H203] Use assertIs(Not)None to check for None.
|
||||
- [H204] Use assert(Not)Equal to check for equality.
|
||||
- [H205] Use assert(Greater|Less)(Equal) for comparison.
|
||||
- [H210] Require 'autospec', 'spec', or 'spec_set' in
|
||||
mock.patch/mock.patch.object calls
|
||||
- [H904] Delay string interpolations at logging calls.
|
||||
|
8
releasenotes/notes/start-of-queens-c3024ebbb49aef6f.yaml
Normal file
8
releasenotes/notes/start-of-queens-c3024ebbb49aef6f.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
This release includes a new check, disabled by default.
|
||||
[H210] Require 'autospec', 'spec', or 'spec_set' in
|
||||
mock.patch/mock.patch.object calls
|
||||
[H204] Use assert(Not)Equal to check for equality.
|
||||
[H205] Use assert(Greater|Less)(Equal) for comparison.
|
Loading…
Reference in New Issue
Block a user