2024-05-04 20:08:33 +02:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
2024-05-04 22:29:40 +02:00
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
|
|
rev: v1.5.5
|
|
|
|
hooks:
|
|
|
|
- id: forbid-crlf
|
|
|
|
- id: remove-crlf
|
|
|
|
- id: chmod
|
|
|
|
args: ['644']
|
|
|
|
files: \.md$
|
|
|
|
- id: insert-license
|
|
|
|
files: \.py$
|
|
|
|
args:
|
|
|
|
- --license-filepath
|
|
|
|
- LICENSE_header.txt
|
|
|
|
- --comment-style
|
|
|
|
- "#"
|
|
|
|
- --use-current-year
|
|
|
|
|
2024-05-04 20:08:33 +02:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
# Ruff version.
|
|
|
|
rev: v0.4.3
|
|
|
|
hooks:
|
|
|
|
# ruff lint
|
|
|
|
#- id: ruff
|
|
|
|
# args: [ --fix ]
|
|
|
|
# ruff fmt
|
|
|
|
- id: ruff-format
|
|
|
|
|
|
|
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
|
|
rev: master
|
|
|
|
hooks:
|
|
|
|
- id: commitizen
|
|
|
|
- id: commitizen-branch
|
|
|
|
stages: [push]
|