connect.py # 实际执行的脚本│ ├── pcm_issue_ref_prefix.py # 实际执行的脚本│ └── pcm_tapd_ref_prefix.py # 实际执行的脚本├── .pre-commit-hooks.yaml # 配置 pre-commit hooks entry ├── pyproject.toml ├── setup.cfg
setup.py tests asc_desc2horz_vert.py configs RidgecrestSenDT71.txt WellsEnvD2T399.txt objects ionex.py smallbaselineApp.py 3 changes: 1 addition & 2 deletions 3 .github/ISSUE_TEMPLATE/feature_request.md Expand Up @@ -29,10 +29,9 @@ assignees: '' <!-- Add any other context...
chore(lint-staged): setup precommit hookSigned-off-by: Phil Kuang <pkuang@factset.com> main(backstage/community-plugins#352) 1 parent 9a48790 commit 5541765 File tree.eslintrc.cjs .husky .gitignore pre-commit package.json scripts/templates copyright-header.txt...
html CMAKE_POLICY(SET CMP0094 NEW) # FindPython should return the first matching Python ENDIF () # needed on GitHub Actions CI: actions/setup-python does not touch registry/frameworks on Windows/macOS # this mirrors PythonInterp behavior which did not consult registry/frameworks first IF (NOT...
runpre-commit installto set up the git hook scripts $pre-commitinstallpre-commit installed at .git/hooks/pre-commit nowpre-commitwill run automatically ongit commit! 4. (optional) Run against all the files it's usually a good idea to run the hooks against all of the files when adding ...
pre-commit-hook-setup.md pre-commit-hook-setup.md2.83 KB 一键复制编辑原始数据按行查看历史 Paolo Tranquilli提交于3年前.fix typo CodeQL pre-commit-hook setup Using the pre-commit framework Manual approach CodeQL pre-commit-hook setup As stated inCONTRIBUTINGall CodeQL files must be formatted accor...
在示例配置中,可以看到 pre-commit 从它的存储库中添加了一些默认hook。它指定存储库的位置、版本以及要使用的特定hook ID。可以了解这些钩子的功能,并通过探索 pre-commit 的内置钩子来添加更多内容。其中许多还有其他参数,可以配置这些参数来自定义钩子。
debug-statement-hook = pre_commit_hooks.debug_statement_hook:main destroyed-symlinks = pre_commit_hooks.destroyed_symlinks:main detect-aws-credentials = pre_commit_hooks.detect_aws_credentials:main detect-private-key = pre_commit_hooks.detect_private_key:main ...
# hook.py import sys def check_todo(file): with open(file, 'r') as f: content = f.read() if 'TODO' in content: print(f"Found TODO in {file}") return 1 else: return 0 if __name__ == '__main__': file = sys.argv[1] ...
name = 'Custom Code Style Check' description = 'Runs a custom code style check script.' entry = run_check def export_hook(): return { 'type': hook_type, 'id': id, 'name': name, 'description': description, 'entry': entry, } def check_hook(context): # 在此处添加具体的检查逻辑 ...