BSD Ports

wip/py-pre-commit 4.7.0 NetBSD

Framework for managing and maintaining multi-language pre-commit hook

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
Last update
Commit
fd96d3b987
License
mit
Categories
wip, devel, python

Description

It is a multi-language package manager for pre-commit hooks. You specify a list of hooks you want and pre-commit manages the installation and execution of any hook written in any language before every commit. pre-commit is specifically designed to not require root access. If one of your developers doesn't have node installed but modifies a JavaScript file, pre-commit automatically handles downloading and building node to run eslint without root.

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/py-pre-commit && make install clean

Dependencies

Build dependencies 1
Run dependencies 5

Commit history 3

DateCommitCreditsLog message
fd96d3b987 Iku Iwasa py-pre-commit: update to 4.7.0
Fixes * Fix language: node hooks during commit with -a or inside a submodule * Regressed in 4.6.1.
9840085c2d Iku Iwasa py-pre-commit: update to 4.6.2
* Fix language: node hooks that contain "scripts": {"build": ...} with npm 11.x. * Regressed in 4.6.1.
3f2a722db6 Iku Iwasa py-pre-commit: update to 4.6.1
Fixes * Install language: node hooks via git. * Fixes npm 12.x compatibility * Set JULIA_DEPOT_PATH for language: julia. * Produce error on mistyped --repo for pre-commit autoupdate. * Improve performance of commit existence check in pre-push. * Avoid duplicating conflicted filenames during pre-commit run --all-files.