From 5b9a467cf04ce80d83bc73da873de84fc3f389c1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 14 Sep 2019 09:52:52 +0200 Subject: [PATCH] flake8: ignore certain errors for .pyi files (#159) --- setup.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.cfg b/setup.cfg index ea594bb..131aaa5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,6 +13,14 @@ exclude = django-stubs test-data max_line_length = 120 +per-file-ignores = + # E301: expected 1 blank line + # E302: expected 2 blank lines + # E305: expected 2 blank lines after class or function definition + # E701: multiple statements on one line (colon) + # E743: ambiguous function definition 'X' + # F821: undefined name 'X' + *.pyi: E301, E302, E305, E701, E743, F821 [metadata] license_file = LICENSE.txt