mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
bypass non-python files
This commit is contained in:
parent
842502831a
commit
5a1a4917e1
1 changed files with 2 additions and 0 deletions
|
|
@ -116,6 +116,8 @@ def hg_hook(ui, repo, **kwargs):
|
|||
files = []
|
||||
for rev in xrange(repo[kwargs['node']], len(repo)):
|
||||
for file_ in repo[rev].files():
|
||||
if not file_.endswith('.py'):
|
||||
continue
|
||||
if file_ not in files:
|
||||
files.append(file_)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue