From 9d6d21ee2efb454f1c02275a99a6e1d9bb69b095 Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Fri, 19 Nov 2021 14:15:10 +0100 Subject: [PATCH] Pin latest flake8 The previously pinned version range seems not to be able to reliably detect undefined names (F821). --- test-requirements.txt | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 358e1bc..170df5e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,7 +4,7 @@ charm-tools>=2.4.4 coverage>=3.6 mock>=1.2 -flake8>=2.2.4,<=2.4.1 +flake8>=4.0.1 stestr>=2.2.0 requests>=2.18.4 psutil diff --git a/tox.ini b/tox.ini index 775ea57..99cf840 100644 --- a/tox.ini +++ b/tox.ini @@ -130,4 +130,4 @@ commands = [flake8] # Ignore E902 because the unit_tests directory is missing in the built charm. -ignore = E402,E226,E902 +ignore = E402,E226,W503,W504,E902