/pre-commit-check-unittest-super

Ensures super calls in unittest setUp/tearDown functions

Primary LanguagePythonMIT LicenseMIT

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:

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