Skip to content

Repository files navigation

complexipy-pre-commit

A pre-commit hook for Complexipy.

Distributed as a standalone repository to enable installing complexipy via prebuilt wheels from PyPI.

Using complexipy with pre-commit

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: v7.0.1
  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: v7.0.1
  hooks:
    # Run the cognitive complexity checker.
    - id: complexipy
      types_or: [ python, pyi ]

About

A pre-commit hook for complexipy.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors