From 15a0070d96313b49bfdf41fab52a9bb252bfa0b4 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 30 Nov 2021 00:48:18 +0000 Subject: Add Designate hacking checks to the client This patch adds the Designate hacking checks to also run against the Designate client code to maintain consistent style checking across the Designate repositories. It also resolves one style check failure. Change-Id: I09786482b2e7fecaa3d4484c9b1a017fae04cfea --- tox.ini | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 8bdf84c..0c687b0 100644 --- a/tox.ini +++ b/tox.ini @@ -97,6 +97,19 @@ ignore = H105,H302,H404,H405,W504,H904 builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools +[flake8:local-plugins] +extension = + D701 = checks:mutable_default_arguments + D703 = checks:check_explicit_underscore_import + D704 = checks:no_import_graduated_oslo_libraries + D705 = checks:use_timeutils_utcnow + D706 = checks:no_translate_debug_logs + D707 = checks:check_no_basestring + D708 = checks:check_python3_xrange + D709 = checks:check_no_log_audit + D710 = checks:check_no_log_warn +paths = ./designateclient/hacking + [testenv:lower-constraints] skip_install = True commands = -- cgit v1.2.1