From a87b6d69f5ea968a5dd563f8588f3d64f75687c2 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 26 Aug 2022 19:51:57 +0000 Subject: [PATCH] Exclude .cache when running flake8 For local runs of testenv:linters we cache all the external Ansible playbooks and roles ansible-lint will need to reference in order to validate content in this repository. We build that cache in a .cache directory, but not everything in the cached repositories is suitable for flake8 checking, so add that directory to its exclusion list. Also add the same directory to .gitignore, so Git will stop complaining about it being untracked. Change-Id: I1f740edd75cc7f6ba0f4a73f0a409a620b437b16 --- .gitignore | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 638d0d3b8d..a271298f41 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.sw? *~ *.pyc +.cache/ .tox/ .test/ /.project diff --git a/tox.ini b/tox.ini index 85418a62a5..dce24df60b 100644 --- a/tox.ini +++ b/tox.ini @@ -66,7 +66,7 @@ commands = [flake8] show-source = True -exclude = .tox,.test +exclude = .tox,.test,.cache # These are ignored intentionally in openstack-infra projects; # please don't submit patches that solely correct them or enable them. ignore = E125,E129,E402,H,W503