1 Star 0 Fork 0

郭艺鹏/mantid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
default_language_version:
python: python3
exclude: ^$|instrument/
ci:
autofix_prs: true
repos:
# Run fast code improvement/checks before running PR specific helpers.
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: .patch$
- id: check-added-large-files
args: ['--maxkb=4096']
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
exclude: conda/recipes/mantid/meta.yaml|conda/recipes/mantid-developer/meta.yaml|conda/recipes/mantidqt/meta.yaml|conda/recipes/mantiddocs/meta.yaml|conda/recipes/mantidworkbench/meta.yaml
- id: end-of-file-fixer
exclude: .md5$|^external/|^tools/|Testing/Tools/cxxtest
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.3 # updating to a new version should wait until maintenance
hooks:
- id: clang-format
exclude: Testing/Tools/cxxtest|tools|qt/icons/resources/
- repo: https://github.com/mantidproject/pre-commit-hooks.git
rev: 17c2842277953a4afcbca26bf84e8956f729e765
hooks:
- id: cmake-missing-pytest-files
# Exclude sphinx / template file
exclude: test_doctest.py|python_export_maker.py
- id: mantid-release-note-check
files: docs\/source\/release\/v\d+\.\d+\.\d+\/.*\/.*\.rst
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
#- id: cmake-lint <- not ready yet
- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.4
hooks:
- id: rstcheck
additional_dependencies: [sphinx]
args: ["--config", ".rstcheck.project.cfg"]
exclude: |
(?x)^(
^docs/source/index.rst$| # this has a value filled in by something
^docs/source/concepts/FittingMinimizersComparisonDetailed.rst| # strange ranking tags
^docs/source/fitting/.*|
^docs/source/techniques/.*
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
# ruff must appear before black in the list of hooks
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
exclude: scripts/templates/reference/|Testing/Tools/cxxtest
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/guoyipengguoyipeng2018/mantid.git
git@gitee.com:guoyipengguoyipeng2018/mantid.git
guoyipengguoyipeng2018
mantid
mantid
main

搜索帮助