Skip to content

rohaquinlop/complexipy-pre-commit

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: 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 ]

About

A pre-commit hook for complexipy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •