mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-08 15:22:27 +00:00
32 lines
733 B
YAML
32 lines
733 B
YAML
|
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$
|