...instead of assertEqual(None, ...) or assertIs(None, ...) and their
negations.
Apparently that's a thing that people want? At any rate, 30+ projects
have this bug marked "Fix Released". However, without a check to keep
them from regressing, there is a long tail of follow-up patches that
distracts developers and reviewers from addressing user-facing bugs. See
the following Nova changes, spread out over the course of a year, for an
example:
If3824356ddf4e6e2d91f6bc2fbfa41946d8463cc
I09f38e219931e0d7ad27f04861d1ebbc3b5e2c5f
Iee1379b941f93388900e89388676000b845fc8fc
I0d38a82e78fbe94657ab9a71c08422007843d179
I9316c0b125aa87b6ebfa996a559c3551093ea711
I406ea23b0e78f45f16306813e4111a95716cd6b0
Ic8cb1192e001409d827c8da55fe536681895944b
Add a check for it in the interest of not wasting reviewer time or
having more code churn than necessary.
Change-Id: Iad65cb6399f4f933cbd9f503c88ce144387d39b5
Related-Bug: #1280522
80 lines
2.8 KiB
INI
80 lines
2.8 KiB
INI
[metadata]
|
|
name = hacking
|
|
author = OpenStack
|
|
author-email = openstack-dev@lists.openstack.org
|
|
summary = OpenStack Hacking Guideline Enforcement
|
|
description-file =
|
|
README.rst
|
|
home-page = http://docs.openstack.org/developer/hacking/
|
|
classifier =
|
|
Development Status :: 4 - Beta
|
|
Environment :: Console
|
|
Environment :: OpenStack
|
|
Intended Audience :: Developers
|
|
Intended Audience :: Information Technology
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: OS Independent
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 2
|
|
Programming Language :: Python :: 2.6
|
|
Programming Language :: Python :: 2.7
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.3
|
|
Programming Language :: Python :: 3.4
|
|
|
|
[files]
|
|
packages =
|
|
hacking
|
|
|
|
[entry_points]
|
|
flake8.extension =
|
|
H000 = hacking.core:ProxyChecks
|
|
H101 = hacking.checks.comments:hacking_todo_format
|
|
H102 = hacking.checks.comments:hacking_has_license
|
|
H103 = hacking.checks.comments:hacking_has_correct_license
|
|
H104 = hacking.checks.comments:hacking_has_only_comments
|
|
H105 = hacking.checks.comments:hacking_no_author_tags
|
|
H106 = hacking.checks.vim_check:no_vim_headers
|
|
H201 = hacking.checks.except_checks:hacking_except_format
|
|
H202 = hacking.checks.except_checks:hacking_except_format_assert
|
|
H203 = hacking.checks.except_checks:hacking_assert_is_none
|
|
H231 = hacking.checks.python23:hacking_python3x_except_compatible
|
|
H232 = hacking.checks.python23:hacking_python3x_octal_literals
|
|
H233 = hacking.checks.python23:hacking_python3x_print_function
|
|
H234 = hacking.checks.python23:hacking_no_assert_equals
|
|
H235 = hacking.checks.python23:hacking_no_assert_underscore
|
|
H236 = hacking.checks.python23:hacking_python3x_metaclass
|
|
H237 = hacking.checks.python23:hacking_no_removed_module
|
|
H238 = hacking.checks.python23:hacking_no_old_style_class
|
|
H301 = hacking.checks.imports:hacking_import_rules
|
|
H306 = hacking.checks.imports:hacking_import_alphabetical
|
|
H401 = hacking.checks.docstrings:hacking_docstring_start_space
|
|
H403 = hacking.checks.docstrings:hacking_docstring_multiline_end
|
|
H404 = hacking.checks.docstrings:hacking_docstring_multiline_start
|
|
H405 = hacking.checks.docstrings:hacking_docstring_summary
|
|
H501 = hacking.checks.dictlist:hacking_no_locals
|
|
H700 = hacking.checks.localization:hacking_localization_strings
|
|
H903 = hacking.checks.other:hacking_no_cr
|
|
H904 = hacking.checks.other:hacking_delayed_string_interpolation
|
|
|
|
[extras]
|
|
pep257 =
|
|
flake8-docstrings==0.2.1.post1 # MIT
|
|
|
|
[build_sphinx]
|
|
all_files = 1
|
|
build-dir = doc/build
|
|
source-dir = doc/source
|
|
|
|
|
|
[pbr]
|
|
warnerrors = True
|
|
|
|
[egg_info]
|
|
tag_build =
|
|
tag_date = 0
|
|
tag_svn_revision = 0
|
|
|
|
[wheel]
|
|
universal = 1
|