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

https://github.com/getindata/py-pre-commit-hooks

This is small repository that adds python based hooks for pre-commit
https://github.com/getindata/py-pre-commit-hooks

Last synced: 5 months ago
JSON representation

This is small repository that adds python based hooks for pre-commit

Awesome Lists containing this project

README

          

# Python pre-commit hooks

[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

## About

This is small repository that adds python based hooks for pre-commit.

[0.2.0] Moved from copy of docker image setup to reference of github action to stay up to date.

## Supported hooks

* [pyspelling-docker](https://github.com/rojopolis/spellcheck-github-actions)
This hook uses pyspelling in docker container. Supported languages: `[en, pl, de, fr, es]`. It looks for `.spellcheck.yml` config. In case it does not find it, it uses the default specified in this repository. Configure it using the [pyspelling configuration](https://facelessuser.github.io/pyspelling/configuration/). The only supported spellchecker right now is aspell.

## Example usage

Define in `.pre-commit-config.yaml`:

```yaml
- repo: https://github.com/getindata/py-pre-commit-hooks
rev: v0.2.0
hooks:
- id: pyspelling-docker
```