Gergely Polonkai
b30aa39d6b
It results in mostly the same style, plus it’s configurable via pyproject.toml.
27 lines
751 B
YAML
27 lines
751 B
YAML
---
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: commitizen
|
|
name: commitizen check
|
|
entry: poetry run cz
|
|
args: ["check", "--allow-abort", "--commit-msg-file"]
|
|
stages: ["commit-msg"]
|
|
language: system
|
|
- id: commitizen-branch
|
|
name: commitizen check branch
|
|
entry: poetry run cz
|
|
args: ["check", "--rev-range", "origin/HEAD..HEAD"]
|
|
always_run: true
|
|
pass_filenames: false
|
|
language: system
|
|
stages: [push]
|
|
- id: black
|
|
name: black
|
|
description: "Black: The uncompromising Python code formatter"
|
|
entry: poetry run black
|
|
args: ["--diff"]
|
|
language: system
|
|
require_serial: true
|
|
types_or: [python, pyi]
|