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
- Host: GitHub
- URL: https://github.com/shosca/pre-commit-check-unittest-super
- Owner: shosca
- License: mit
- Created: 2019-07-20T14:23:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-20T14:25:16.000Z (almost 7 years ago)
- Last Synced: 2025-04-01T13:48:11.275Z (about 1 year ago)
- Topics: pre-commit, pre-commit-hook
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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/