Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nicholasserra/4c843f2e4c57eb1c19efbfff4e94dd9f to your computer and use it in GitHub Desktop.

Select an option

Save nicholasserra/4c843f2e4c57eb1c19efbfff4e94dd9f to your computer and use it in GitHub Desktop.

Revisions

  1. nicholasserra created this gist Mar 25, 2021.
    34 changes: 34 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    [report]
    # Regexes for lines to exclude from consideration
    exclude_lines =
    # Have to re-enable the standard pragma
    pragma: no cover

    # Don't complain about missing debug-only code:
    def __repr__
    if self\.debug
    def __unicode__
    def __repr__
    if settings.DEBUG
    raise NotImplementedError
    from django\.

    # Don't complain if tests don't hit defensive assertion code:
    raise AssertionError
    raise NotImplementedError

    # Don't complain if non-runnable code isn't run:
    if 0:
    if __name__ == .__main__.:

    [run]
    omit =
    *tests*
    *migrations*
    *management*
    *urls*
    *site-packages*
    *django-*
    *src*
    *manage*
    *settings*