From 44e7a693f00b18aec6be81ff21af5154dba6e758 Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Wed, 12 Jan 2022 15:04:49 +0000 Subject: [PATCH] [IMP] flake8 base config The usage of `select=RST` apparently broke all local flake8 uses (which might be implicit e.g. used for linting in the simpler editors). Always excluding "addons" probably causes a similar problem. Remove the exclusion of "addons", and use "extend-select" for the selection of RST errors. This should play better with local configuration, or the lack of configuration (thus flake8 defaults). This means the exclusion of addons and the "blanking" of the default errors selection will have to be done in the CI configuration, but that probably makes sense. closes odoo/odoo#82650 Signed-off-by: Raphael Collet --- setup.cfg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 33ca8fbb1b7..336316bac61 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,14 +46,13 @@ requires = python3-zeep [flake8] -exclude = +extend-exclude = .git, .tx, - addons, debian, doc, setup, -select = +extend-select = RST rst-directives = function,