An open API service indexing awesome lists of open source software.

https://github.com/rohaquinlop/complexipy-pre-commit

A pre-commit hook for complexipy.
https://github.com/rohaquinlop/complexipy-pre-commit

Last synced: 2 months ago
JSON representation

A pre-commit hook for complexipy.

Awesome Lists containing this project

README

        

# complexipy-pre-commit

A [pre-commit](https://pre-commit.com/) hook for [Complexipy](https://github.com/rohaquinlop/complexipy).

Distributed as a standalone repository to enable installing complexipy via prebuilt wheels from [PyPI](https://pypi.org/project/complexipy/).

### Using complexipy with pre-commit

To run Complexipy's [linter](https://github.com/rohaquinlop/complexipy) via pre-commit, add the following to your `.pre-commit-config.yaml`:

```yaml
repos:
- repo: https://github.com/rohaquinlop/complexipy-pre-commit
# complexipy version.
rev: v1.2.0
hooks:
# Run the cognitive complexity checker.
- id: complexipy
```
To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed filetypes:

```yaml
repos:
- repo: https://github.com/rohaquinlop/complexipy-pre-commit
# complexipy version.
rev: v1.2.0
hooks:
# Run the cognitive complexity checker.
- id: complexipy
types_or: [ python, pyi ]
```