mirror ofhttps://github.com/ssciwr/clang-format-wheelfor pre-commit Python48MIT3301UpdatedJan 15, 2025 mirrors-mypyPublic Mirror of mypy for pre-commit People Top languages PythonRubyRust Most used topics pre-commitgitlinterpythonrefactoring
Property Management System on Odoo. Contribute to OCA/pms development by creating an account on GitHub.
# YAML文件repos:-repo:https://github.com/psf/blackrev:stablehooks:-id:black-repo:https://github.com/pre-commit/pre-commit-hooksrev:v4.1.0hooks:-id:trailing-whitespace-id:end-of-file-fixer-id:check-yaml# 在这个示例中,我们使用了两个pre-commit钩子,# 一个是flake8用于代码风格检查,另一个是...
一个最基本的 Rust 项目 Github Action 配置如下,在根目录添加.github/workflows/build.yml,内容: #在`ubuntu-latest`中安装必要的依赖,然后执行代码风格检查和测试name:buildon:push:branches:-mainpull_request:branches:-mainjobs:build-rust:strategy:matrix:platform:[ubuntu-latest]runs-on:${{ matrix.platform...
name: isort(python)- repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.2.3 hooks: - id: debug-statements - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.2.3 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy ...
在github上找到了原因, 因为在window下pre-commit npm,由于权限问题,导致无法在hooks文件下生成文件。 需要以管理员打开cmd,执行node ./node_modules/pre-commit/install.js就可以了。o(╯□╰)o 检测脚本check 隐患检测 博主一开始的思路就是使用eslint检测潜在的错误,由于eslint比较严格,一下子会有很多的error,...
可以了解这些钩子的功能,并通过探索 pre-commit 的[内置](https://github.com/pre-commit/pre-commit-hooks)钩子来添加更多内容。其中许多还有其他参数,可以配置这些参数来自定义钩子。 ``` # Inside .pre-commit-config.yaml ... - id: check-added-large-files args: ['--maxkb=1000'] exclude: "...
Repository github.com/kazazor/git-pre-commit Homepage github.com/kazazor/git-pre-commit#readme Weekly Downloads 172 Version 2.1.4 License MIT Unpacked Size 31.4 kB Total Files 17 Issues 11 Pull Requests 0 Last publish 7 years ago Collaborators Try on RunKit Report malware ...
我正在尝试使用 github 操作中与 golang 相关的一些挂钩运行 pre-commit.com 脚本。似乎测试环境缺少一些工具来执行 go-imports 和 golangci-lint。我已经在预提交步骤之前添加了在环境中设置所需工具的步骤,但这没有帮助。.pre-commit-config.yaml:repos:- repo: https://github.com/dnephin/pre-commit-go...
-repo:https://github.com/pre-commit/pre-commit-hooksrev:v3.1.0# Use the ref you want to point athooks:-id:trailing-whitespace# - id: ... Hooks available check-added-large-files Prevent giant files from being committed. Specify what is "too large" withargs: ['--maxkb=123'](default...