diff options
-rwxr-xr-x | check | 6 | ||||
-rw-r--r-- | flake8.ini | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -174,7 +174,7 @@ def check_python(r): ) # Test with flake8 if available. Flake8 finds Python files itself. - r.runcmd_maybe(["flake8", "check"] + py) + r.runcmd_maybe(["flake8", "--config=flake8.ini", "check"] + py) # Check formatting with Black. We need to provide the files to Python # ourselves. @@ -336,7 +336,9 @@ def check_tooling(r): if not r.got_command(command): if command == "pandoc-citeproc": if r.pandoc_is_newer(): - r.msg(" Fortunately pandoc is new enough for --citeproc, no need for pandoc-citeproc") + r.msg( + " Fortunately pandoc is new enough for --citeproc, no need for pandoc-citeproc" + ) continue sys.exit(f"can't find {command}, which is needed for test suite") diff --git a/flake8.ini b/flake8.ini new file mode 100644 index 0000000..5cf16d3 --- /dev/null +++ b/flake8.ini @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 999 +ignore = E203, E302, W503
\ No newline at end of file |