you can use directly the .gitignore file in the project root.
there's already an entry for the static folder there
https://github.com/mozilla/treeherder-service/blob/master/.gitignore#L51