From 5edcdf1e784e61d20ffe9358e158b0d20d98e06a Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Thu, 1 Jun 2023 16:05:04 +0200 Subject: [PATCH] Add flake8 configuration to the tox.ini file It sets import stype to be "pep8" to be consistent with other OpenStack projects and configures some excluded files and enabled extensions. It's all the same as for neutron-tempest-plugin repo to be consistent with it. Change-Id: I8951003e481fe15f05cc7eeb671d86ca793a7eed --- tox.ini | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index a8ead27..9541926 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ skipsdist = True ignore_basepython_conflict = True [testenv] -basepython = python3 +basepython = {env:TOX_PYTHON:python3} usedevelop = True setenv = VIRTUAL_ENV={envdir} @@ -24,3 +24,9 @@ commands = [testenv:venv] commands = {posargs} + +[flake8] +enable-extensions = H106,H203,H204,H205,H904 +show-source = true +exclude = ./.*,build,dist,doc,*egg*,releasenotes +import-order-style = pep8