Package Details: python-git-pylint-commit-hook 2.6.1-1

Git Clone URL: https://aur.archlinux.org/python-git-pylint-commit-hook.git (read-only, click to copy)
Package Base: python-git-pylint-commit-hook
Description: Git pre-commit hook to check Python code quality with pylint. You can use this hook to prohibit Python code with a bad syntax to be checked in.
Upstream URL: https://github.com/sebdah/git-pylint-commit-hook
Keywords: commit git git-pylint-commit-hook hook pylint
Licenses: Apaches
Submitter: yuhldr
Maintainer: yuhldr
Last Packager: yuhldr
Votes: 0
Popularity: 0.000000
First Submitted: 2023-12-29 02:52 (UTC)
Last Updated: 2023-12-29 02:52 (UTC)

Pinned Comments

yuhldr commented on 2023-12-29 02:58 (UTC) (edited on 2023-12-29 02:59 (UTC) by yuhldr)

git提交之前pylint检测

创建文件

vim .git/hooks/pre-commit

添加如下内容

#!/bin/sh

git-pylint-commit-hook --limit=9.8

可执行权限

chmod +x .git/hooks/pre-commit

Latest Comments

yuhldr commented on 2023-12-29 02:58 (UTC) (edited on 2023-12-29 02:59 (UTC) by yuhldr)

git提交之前pylint检测

创建文件

vim .git/hooks/pre-commit

添加如下内容

#!/bin/sh

git-pylint-commit-hook --limit=9.8

可执行权限

chmod +x .git/hooks/pre-commit