From 4cdaac5df626d233bad3c10da5d173d62689eed6 Mon Sep 17 00:00:00 2001 From: Filip Parag Date: Thu, 2 Dec 2021 12:03:20 +0100 Subject: [PATCH] modify flake8 rules --- mep3_simulation/.flake8 | 2 ++ mep3_simulation/test/test_flake8.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 mep3_simulation/.flake8 diff --git a/mep3_simulation/.flake8 b/mep3_simulation/.flake8 new file mode 100644 index 000000000..fe2805517 --- /dev/null +++ b/mep3_simulation/.flake8 @@ -0,0 +1,2 @@ +[flake8] +ignore = I100 diff --git a/mep3_simulation/test/test_flake8.py b/mep3_simulation/test/test_flake8.py index 27ee1078f..cb1c264b4 100644 --- a/mep3_simulation/test/test_flake8.py +++ b/mep3_simulation/test/test_flake8.py @@ -19,7 +19,9 @@ @pytest.mark.flake8 @pytest.mark.linter def test_flake8(): - rc, errors = main_with_errors(argv=[]) + rc, errors = main_with_errors(argv=[ + '--linelength', '100' + ]) assert rc == 0, \ 'Found %d code style errors / warnings:\n' % len(errors) + \ '\n'.join(errors)