changeset e6d18cba6765 in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset&node=e6d18cba6765
description:
Define explicit configuration for flake8
With the diff option recent version of flake8 does not load the default
configuration.
diffstat:
.flake8 | 2 +-
reviewbot.py | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 9734831aa897 -r e6d18cba6765 .flake8
--- a/.flake8 Wed Dec 15 17:43:20 2021 +0100
+++ b/.flake8 Wed Dec 22 10:03:48 2021 +0100
@@ -1,2 +1,2 @@
[flake8]
-ignore=E123,E124,E126,E128,W503
+ignore=E123,E124,E126,E128,E741,W503
diff -r 9734831aa897 -r e6d18cba6765 reviewbot.py
--- a/reviewbot.py Wed Dec 15 17:43:20 2021 +0100
+++ b/reviewbot.py Wed Dec 22 10:03:48 2021 +0100
@@ -96,8 +96,11 @@
try:
output.append(subprocess.check_output(
'hg diff --subrepos | '
- 'flake8 --format="%(format)s" --diff --exit-zero' % {
+ 'flake8 --format="%(format)s" --diff --config "%(config)s" '
+ '--exit-zero' % {
'format': format_,
+ 'config': os.path.join(
+ os.path.dirname(__file__), '.flake8'),
},
shell=True).decode('utf-8'))
output.append(subprocess.check_output(