From dd7c91d57869360e3f34c6564e1b3beff65b3d39 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sat, 8 Jun 2019 13:26:37 -0400 Subject: flake8 now applied to tests, huzzah --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 7ff383c3..9dc712a7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ license_file = LICENSE omit = paramiko/_winapi.py [flake8] -exclude = sites,.git,build,dist,demos,tests +exclude = sites,.git,build,dist,demos # NOTE: W503, E203 are concessions to black 18.0b5 and could be reinstated # later if fixed on that end. # NOTE: E722 seems to only have started popping up on move to flake8 3.6.0 from -- cgit v1.2.3 From 01637dee8433c7f956ec599fba755c671336f36f Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 14 Jun 2019 16:42:12 -0400 Subject: Filter ABCs DeprecationWarning from pkg_resources' vendored pyparsing --- setup.cfg | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 9dc712a7..ee56f985 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,3 +22,5 @@ max-line-length = 79 addopts = -p no:relaxed # Loop on failure looponfailroots = tests paramiko +filterwarnings = + ignore::DeprecationWarning:pkg_resources -- cgit v1.2.3 From c9eb8862f333910d8b89612e94a32d365319d449 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 14 Jun 2019 17:36:07 -0400 Subject: Ignore CryptographyDeprecationWarning in tests on 2.4 branch --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index ee56f985..1b589871 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,5 +22,9 @@ max-line-length = 79 addopts = -p no:relaxed # Loop on failure looponfailroots = tests paramiko +# Ignore some warnings we cannot easily handle. +# (NOTE: the CryptographyDeprecationWarning one should ONLY be in our 2.4 +# branch) filterwarnings = ignore::DeprecationWarning:pkg_resources + ignore::cryptography.utils.CryptographyDeprecationWarning -- cgit v1.2.3 From b0363d8915151cb478df6553201ff30cd6ec5e13 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 14 Jun 2019 17:36:30 -0400 Subject: Remove CryptographyDeprecationWarning filter on 2.5+ --- setup.cfg | 3 --- 1 file changed, 3 deletions(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 1b589871..b6b2eea3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,8 +23,5 @@ addopts = -p no:relaxed # Loop on failure looponfailroots = tests paramiko # Ignore some warnings we cannot easily handle. -# (NOTE: the CryptographyDeprecationWarning one should ONLY be in our 2.4 -# branch) filterwarnings = ignore::DeprecationWarning:pkg_resources - ignore::cryptography.utils.CryptographyDeprecationWarning -- cgit v1.2.3 From d2bf2f399d58546df07ffa52db426ff97094983e Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 14 Jun 2019 17:36:07 -0400 Subject: Ignore CryptographyDeprecationWarning in tests on 2.4 branch --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index ee56f985..1b589871 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,5 +22,9 @@ max-line-length = 79 addopts = -p no:relaxed # Loop on failure looponfailroots = tests paramiko +# Ignore some warnings we cannot easily handle. +# (NOTE: the CryptographyDeprecationWarning one should ONLY be in our 2.4 +# branch) filterwarnings = ignore::DeprecationWarning:pkg_resources + ignore::cryptography.utils.CryptographyDeprecationWarning -- cgit v1.2.3 From 0db807758757170b92d882ecbc43f1bdad36cce6 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sun, 16 Jun 2019 13:06:56 -0400 Subject: Cannot easily filter CryptographyDeprecationWarning on OLDEST_CRYPTO=1.5 Could re-inject it for the other test cells with -o=-W=ignore:xxx, but that does not feel worthwhile just for the Paramiko 2.4 branch, which is the only place it would live - this needs stripping out for 2.5+ as we updated to newer Cryptography again there. --- setup.cfg | 3 --- 1 file changed, 3 deletions(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 1b589871..b6b2eea3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,8 +23,5 @@ addopts = -p no:relaxed # Loop on failure looponfailroots = tests paramiko # Ignore some warnings we cannot easily handle. -# (NOTE: the CryptographyDeprecationWarning one should ONLY be in our 2.4 -# branch) filterwarnings = ignore::DeprecationWarning:pkg_resources - ignore::cryptography.utils.CryptographyDeprecationWarning -- cgit v1.2.3