An open API service indexing awesome lists of open source software.

https://github.com/shosca/pre-commit-check-unittest-super

Ensures super calls in unittest setUp/tearDown functions
https://github.com/shosca/pre-commit-check-unittest-super

pre-commit pre-commit-hook

Last synced: about 1 year ago
JSON representation

Ensures super calls in unittest setUp/tearDown functions

Awesome Lists containing this project

README

          

=======================================
pre-commit_ unittest super call checker
=======================================

Checks for the existance of super calls in ``setUp``, ``tearDown``, ``setUpClass`` and ``tearDownClass``.

Usage
=====

Add this to your ``.pre-commit-config.yaml`` file for pre-commit_:

.. code-block:: yaml

repos:
- repo: https://github.com/shosca/pre-commit-check-unittest-super/
rev: master
hooks:
- id: check-unittest-super

.. _pre-commit: https://pre-commit.com/