bookwyrm/.pre-commit-config.yaml

32 lines
733 B
YAML
Raw Normal View History

2024-01-12 20:33:18 +00:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
types: [file, text]
- id: end-of-file-fixer
types: [file, text]
- id: check-docstring-first
- id: check-case-conflict
- id: check-yaml
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
types: [python]
- repo: local
hooks:
- id: pylint
args: ["--rcfile=.pylintrc"]
name: Pylint
entry: python -m pylint
language: system
files: \.py$
- repo: local
hooks:
- id: pytest
name: pytest
entry: ./bw-dev pytest
language: system
files: \.py$