From a45b88e5c3c8082795e6408d0d6890d15647bf61 Mon Sep 17 00:00:00 2001 From: xiaoshihou Date: Fri, 15 Sep 2023 18:07:17 +0800 Subject: [PATCH] fix(test): flake8 --- test/linter/flake8_spec.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/linter/flake8_spec.lua b/test/linter/flake8_spec.lua index 7a894b6..f5bb30d 100644 --- a/test/linter/flake8_spec.lua +++ b/test/linter/flake8_spec.lua @@ -20,7 +20,7 @@ describe('flake8', function() end_lnum = 0, lnum = 0, message = "'os' imported but unused [401]", - namespace = 4, + namespace = 1, severity = 3, source = 'flake8', }, @@ -31,7 +31,7 @@ describe('flake8', function() end_lnum = 2, lnum = 2, message = 'expected 2 blank lines, found 1 [302]', - namespace = 4, + namespace = 1, severity = 1, source = 'flake8', }, @@ -42,7 +42,7 @@ describe('flake8', function() end_lnum = 4, lnum = 4, message = 'indentation is not a multiple of 4 [111]', - namespace = 4, + namespace = 1, severity = 1, source = 'flake8', }, @@ -53,7 +53,7 @@ describe('flake8', function() end_lnum = 4, lnum = 4, message = 'over-indented [117]', - namespace = 4, + namespace = 1, severity = 1, source = 'flake8', }, @@ -64,7 +64,7 @@ describe('flake8', function() end_lnum = 4, lnum = 4, message = 'multiple spaces after keyword [271]', - namespace = 4, + namespace = 1, severity = 1, source = 'flake8', }, @@ -75,7 +75,7 @@ describe('flake8', function() end_lnum = 4, lnum = 4, message = "undefined name 'bar' [821]", - namespace = 4, + namespace = 1, severity = 3, source = 'flake8', }, @@ -86,7 +86,7 @@ describe('flake8', function() end_lnum = 5, lnum = 5, message = 'expected 2 blank lines after class or function definition, found 0 [305]', - namespace = 4, + namespace = 1, severity = 1, source = 'flake8', }, @@ -97,7 +97,7 @@ describe('flake8', function() end_lnum = 5, lnum = 5, message = 'line too long (80 > 79 characters) [501]', - namespace = 4, + namespace = 2, severity = 1, source = 'flake8', },