A pre-commit hook for Complexipy.
Distributed as a standalone repository to enable installing complexipy via prebuilt wheels from PyPI.
To run Complexipy's linter via pre-commit, add the following to your .pre-commit-config.yaml
:
repos:
- repo: https://github.com/rohaquinlop/complexipy-pre-commit
# complexipy version.
rev: v3.3.0
hooks:
# Run the cognitive complexity checker.
- id: complexipy
To avoid running on Jupyter Notebooks, remove jupyter
from the list of allowed filetypes:
repos:
- repo: https://github.com/rohaquinlop/complexipy-pre-commit
# complexipy version.
rev: v3.3.0
hooks:
# Run the cognitive complexity checker.
- id: complexipy
types_or: [ python, pyi ]