Skip to content

Commit

Permalink
Exclude .cache when running flake8
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fungi committed Aug 26, 2022
1 parent 9e669e5 commit a87b6d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.sw?
*~
*.pyc
.cache/
.tox/
.test/
/.project
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a87b6d6

Please sign in to comment.