Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Last active August 29, 2015 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanpabloaj/aeb7f489f987e2d4280b to your computer and use it in GitHub Desktop.
Save juanpabloaj/aeb7f489f987e2d4280b to your computer and use it in GitHub Desktop.
run test and flake8 with watchdog
# pip install watchdog nose nose-cov flake8
# watchmedo tricks-from tricks.yaml
tricks:
- watchdog.tricks.ShellCommandTrick:
patterns: ["*.py"]
shell_command: "nosetests --with-cov && flake8 $(find . -name '*.py') --ignore W191"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment