Skip to content

Instantly share code, notes, and snippets.

@itamarst
Created February 6, 2023 16:34
Show Gist options
  • Save itamarst/7e592d21cc4b0fe6a897d8597c835b6e to your computer and use it in GitHub Desktop.
Save itamarst/7e592d21cc4b0fe6a897d8597c835b6e to your computer and use it in GitHub Desktop.
Lint script for Tahoe-LAFS
#!/bin/bash
set -euo pipefail
flake8 src/
python -m coverage run --branch -m twisted.trial "$@"
coverage combine
coverage xml
diff-cover coverage.xml --compare-branch origin/master --html-report ~/temp/tahoe-coverage.html
firefox ~/temp/tahoe-coverage.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment