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
This commit is contained in:
Jeremy Stanley 2022-08-26 19:51:57 +00:00
parent 9e669e52a4
commit a87b6d69f5
2 changed files with 2 additions and 1 deletions

.gitignore vendored
View File

@ -2,6 +2,7 @@

View File

@ -66,7 +66,7 @@ commands =
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