4f318bc253
This patch updates our hacking checks as follows: - Hacking checks are now registered via entry points so they can be used via flake8 CLI. By default they are disabled. Hacking check doc string is also updated to support pep8 parsing of check code. - The existing hacking.checks.factory() is moved to a more meaningful name; marking as deprecated. - A private neutron-lib specific hacking check factory is provided and used in tox.ini. - A flake8 plugin is provided that supports the ability to use our hacking check factory functions to enable a pre-existing check by default. - Our usage of hacking checks is updated to reflect our consumption model for adopters. - Unit tests are provided. Change-Id: I88dad7f7cce4d4f5af679272f067c3bb4a73803a
63 lines
2.0 KiB
INI
63 lines
2.0 KiB
INI
[metadata]
|
|
name = neutron-lib
|
|
summary = Neutron shared routines and utilities
|
|
description-file =
|
|
README.rst
|
|
author = OpenStack
|
|
author-email = openstack-dev@lists.openstack.org
|
|
home-page = http://www.openstack.org/
|
|
classifier =
|
|
Environment :: OpenStack
|
|
Intended Audience :: Information Technology
|
|
Intended Audience :: System Administrators
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: POSIX :: Linux
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 2
|
|
Programming Language :: Python :: 2.7
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.3
|
|
Programming Language :: Python :: 3.4
|
|
|
|
[files]
|
|
packages =
|
|
neutron_lib
|
|
|
|
[build_sphinx]
|
|
source-dir = doc/source
|
|
build-dir = doc/build
|
|
all_files = 1
|
|
|
|
[upload_sphinx]
|
|
upload-dir = doc/build/html
|
|
|
|
[compile_catalog]
|
|
directory = neutron_lib/locale
|
|
domain = neutron_lib
|
|
|
|
[update_catalog]
|
|
domain = neutron_lib
|
|
output_dir = neutron_lib/locale
|
|
input_file = neutron_lib/locale/neutron_lib.pot
|
|
|
|
[extract_messages]
|
|
keywords = _ gettext ngettext l_ lazy_gettext
|
|
mapping_file = babel.cfg
|
|
output_file = neutron_lib/locale/neutron_lib.pot
|
|
|
|
[entry_points]
|
|
flake8.extension =
|
|
D000 = neutron_lib.hacking.checks:_ProxyHackingChecks
|
|
N521 = neutron_lib.hacking.checks:use_jsonutils
|
|
N523 = neutron_lib.hacking.checks:check_oslo_namespace_imports
|
|
N524 = neutron_lib.hacking.checks:check_no_contextlib_nested
|
|
N525 = neutron_lib.hacking.checks:check_python3_xrange
|
|
N526 = neutron_lib.hacking.checks:check_no_basestring
|
|
N527 = neutron_lib.hacking.checks:check_python3_no_iteritems
|
|
N529 = neutron_lib.hacking.checks:no_mutable_default_args
|
|
N530 = neutron_lib.hacking.checks:check_neutron_namespace_imports
|
|
N531 = neutron_lib.hacking.translation_checks:validate_log_translations
|
|
N532 = neutron_lib.hacking.translation_checks:check_log_warn_deprecated
|
|
N533 = neutron_lib.hacking.translation_checks:no_translate_debug_logs
|
|
N534 = neutron_lib.hacking.translation_checks:check_raised_localized_exceptions
|