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.
- Host: GitHub
- URL: https://github.com/rohaquinlop/complexipy-pre-commit
- Owner: rohaquinlop
- License: mit
- Created: 2024-12-14T00:27:44.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-15T20:59:29.000Z (5 months ago)
- Last Synced: 2025-04-05T14:58:34.339Z (2 months ago)
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ]
```