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

dreieck commented on 2025-01-11 16:01 (UTC)

If possible, please remove the dependency on python-furure/ make the package working without python-future:

WARNING: python-future package is not compatible with Python 3.13

The python-future project was created in 2013 to attempt to save Python from the schism of version incompatibility that was threatening to tear apart the language (as Perl 6 contributed to the death of Perl).

That time is now past. Thanks to a huge porting effort across the Python community, Python 3 eventually thrived. Python 2 reached its end of life in 2020 and the python-future package should no longer be necessary. Use it to help with porting legacy code to Python 3 but don’t depend on it for new code.

If you use packages that depend on it, please contact maintainers and/or upstream of these packages and try to work out whether this dependency is really needed.

Regards and thanks for this package!

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