From 25b6909877aea989d847b5848accffab1dba98ea Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Thu, 31 Mar 2022 23:24:07 +0100 Subject: [PATCH] Exclude the Python-2 stdlib from flake8 CI check We should hopefully be getting rid of this entire subdirectory soon anyway (#7367). This will make PRs to flake8-pyi a lot easier. --- .flake8 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.flake8 b/.flake8 index 648fe76d46fa..b933441d8031 100644 --- a/.flake8 +++ b/.flake8 @@ -35,10 +35,8 @@ per-file-ignores = # https://github.com/PyCQA/flake8/issues/1079 # F811 redefinition of unused '...' stubs/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027 - stdlib/@python2/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027 - stdlib/@python2/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y026, Y027 stdlib/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y026, Y034 # We are checking with Python 3 but many of the stubs are Python 2 stubs. builtins = buffer,file,long,raw_input,unicode,xrange -exclude = .venv*,.git,*_pb2.pyi +exclude = .venv*,.git,*_pb2.pyi,stdlib/@python2/*