Skip to content

Commit

Permalink
make sniffer re-run for changes to XML and JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Sep 9, 2016
1 parent 6a21e8d commit 357ff1b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scent.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@

@select_runnable('python_tests')
@file_validator
def py_files(filename):
return filename.endswith('.py') and not os.path.basename(filename).startswith('.')
def python_test_files(filename):
return (
filename.endswith('.py') or
filename.endswith('.json') or
filename.endswith('.xml') and
not os.path.basename(filename).startswith('.')
)


# Here we instruct the 'javascript_tests' runnable to be kicked off
Expand Down

0 comments on commit 357ff1b

Please sign in to comment.