mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-15 16:49:52 +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 = []
|
files = []
|
||||||
for rev in xrange(repo[kwargs['node']], len(repo)):
|
for rev in xrange(repo[kwargs['node']], len(repo)):
|
||||||
for file_ in repo[rev].files():
|
for file_ in repo[rev].files():
|
||||||
|
if not file_.endswith('.py'):
|
||||||
|
continue
|
||||||
if file_ not in files:
|
if file_ not in files:
|
||||||
files.append(file_)
|
files.append(file_)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue