2023-11-01 03:22:59 +00:00
|
|
|
---
|
|
|
|
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]
|
2023-11-01 04:04:43 +00:00
|
|
|
- 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]
|
2023-11-01 05:03:06 +00:00
|
|
|
- id: pylint
|
|
|
|
name: pylint
|
|
|
|
entry: poetry run pylint
|
|
|
|
language: system
|
|
|
|
types: [python]
|
|
|
|
require_serial: true
|
2023-11-14 04:00:03 +00:00
|
|
|
- id: isort
|
|
|
|
name: isort
|
|
|
|
args: ["--check", "--diff"]
|
|
|
|
entry: poetry run isort
|
|
|
|
language: system
|
|
|
|
require_serial: true
|
|
|
|
types_or: [python, pyi]
|
2023-11-13 12:34:43 +00:00
|
|
|
- id: reuse
|
|
|
|
name: reuse
|
|
|
|
entry: poetry run reuse
|
|
|
|
args: ["lint"]
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|