From 6c31eb0fea370c753270a8ae7ad02aff640a08c3 Mon Sep 17 00:00:00 2001 From: ISP akm Date: Thu, 7 Nov 2024 16:18:05 +0900 Subject: [PATCH] Exclude struct/__init__.py from test_frake8.py Signed-off-by: ISP akm --- src/test/test_flake8.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/test_flake8.py b/src/test/test_flake8.py index 26030113c..0b6c7a0d2 100644 --- a/src/test/test_flake8.py +++ b/src/test/test_flake8.py @@ -19,7 +19,8 @@ @pytest.mark.flake8 @pytest.mark.linter def test_flake8(): - rc, errors = main_with_errors(argv=[]) + ignore_files = 'src/caret_analyze/architecture/struct/__init__.py' + rc, errors = main_with_errors(argv=[f'--exclude={ignore_files}']) assert rc == 0, 'Found %d code style errors / warnings:\n' % len( errors ) + '\n'.join(errors)