From ff588adffc54c0989848208e7f53ffb36641ad63 Mon Sep 17 00:00:00 2001 From: rbpatt2019 Date: Fri, 4 Jun 2021 16:29:48 +0100 Subject: [PATCH] chore(.): Ignore flake8 S101 Previous attempts to selectively disable this warning per-file failed, as flake8 does not correctly normalise paths for `per-file-ignores`. Until resolved, we disable this check as `assert` statements are extremely unlikely out of tests files. See https://github.com/PyCQA/flake8/issues/693 --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4220d52..05d27e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,9 +37,8 @@ float_to_top = false [tool.flake8] select = "ANN,B,B9,C,C4,D,DAR,F,S,SC" -ignore = "ANN101" +ignore = "ANN101,S101" exclude = "docs/conf.py" -per-file-ignore = "tests/*:S101" max-line-length = 88 max-complexity = 10 docstring-convention = "numpy"