Add the hacking checks to the entry points
This will make the hacking checks available for any project importing them. Example: [1]. [1]https://review.opendev.org/c/openstack/neutron/+/956350 Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com> Change-Id: I1dfdb485599ec410359cee85ec29c5aecb085800
This commit is contained in:

committed by
Rodolfo Alonso

parent
dd71244bfd
commit
9b6a1aafc3
10
setup.cfg
10
setup.cfg
@@ -29,3 +29,13 @@ oslo.policy.enforcer =
|
||||
neutron_lib = neutron_lib._policy:get_enforcer
|
||||
oslo.policy.policies =
|
||||
neutron_lib = neutron_lib._policy:list_rules
|
||||
flake8.extension =
|
||||
N521 = neutron_lib.hacking.checks:use_jsonutils
|
||||
N524 = neutron_lib.hacking.checks:check_no_contextlib_nested
|
||||
N529 = neutron_lib.hacking.checks:no_mutable_default_args
|
||||
N530 = neutron_lib.hacking.checks:check_neutron_namespace_imports
|
||||
N532 = neutron_lib.hacking.translation_checks:check_log_warn_deprecated
|
||||
N534 = neutron_lib.hacking.translation_checks:check_raised_localized_exceptions
|
||||
N536 = neutron_lib.hacking.checks:assert_equal_none
|
||||
N537 = neutron_lib.hacking.translation_checks:no_translate_logs
|
||||
N535 = neutron_lib.hacking.checks:check_no_eventlet_imports
|
||||
|
Reference in New Issue
Block a user