summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-15 21:27:29 +0200
committerLars Wirzenius <liw@liw.fi>2021-11-15 21:27:29 +0200
commit3a47660d75e9097d6bf80566b7b7a6b4efa148d6 (patch)
tree0d9b0d9b2b7ae9febe9cad2cc75952a73f5bb4e2 /check
parentb54b80dac6fe81489a935f2c053de441565fd7ee (diff)
downloadsubplot-3a47660d75e9097d6bf80566b7b7a6b4efa148d6.tar.gz
test: disable (some) flake8 formatting checks
We format with black, and there's no point in flake8 checking things black takes care of. Sponsored-by: author
Diffstat (limited to 'check')
-rwxr-xr-xcheck6
1 files changed, 4 insertions, 2 deletions
diff --git a/check b/check
index b7c5164..7275f4e 100755
--- a/check
+++ b/check
@@ -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")