1 Star 0 Fork 0

BioSisyphus / styler.unify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pre-commit-config.yaml 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
王诗翔 提交于 2021-10-31 17:30 . Initial commit
# All available hooks: https://pre-commit.com/hooks.html
# R specific hooks: https://github.com/lorenzwalthert/precommit
repos:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.1.3.9133
hooks:
- id: style-files
require_serial: True
# args: [--style_pkg=styler.putyourstyleguidehere_, --style_fun=putyourstyleguidehere_style]
exclude: 'tests/testthat/.*/.*\.R'
- id: roxygenize
# codemeta must be above use-tidy-description when both are used
# - id: codemeta-description-updated
- id: use-tidy-description
- id: spell-check
exclude: >
(?x)^(
data/.*|
\.github/workflows/.+|
tests/testthat/.*/.*-in_tree|
(.*/|)\.Rprofile|
(.*/|)\.Renviron|
(.*/|)renv\.lock|
(.*/|)renv/settings\.dcf|
(.*/|)\.gitignore|
(.*/|)NAMESPACE|
(.*/|)WORDLIST|
(.*/|)\.travis.yml|
(.*/|)appveyor.yml|
(.*/|)\.Rbuildignore|
(.*/|)\.pre-commit-.*|
.*\.[rR]|
.*\.Rproj|
.*\.py|
.*\.feather|
.*\.rds|
.*\.Rds|
.*\.sh|
.*\.RData
)$
- id: readme-rmd-rendered
- id: parsable-R
- id: no-browser-statement
- id: deps-in-desc
args: [--allow_private_imports]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: ['--maxkb=200']
- id: end-of-file-fixer
exclude: '\.Rd'
- repo: local
hooks:
- id: forbid-to-commit
name: Don't commit common R artifacts
entry: Cannot commit .Rhistory, .RData, .Rds or .rds.
language: fail
files: '\.Rhistory|\.RData|\.Rds|\.rds$'
# `exclude: <regex>` to allow committing specific files.
1
https://gitee.com/BioSisyphus/styler.unify.git
git@gitee.com:BioSisyphus/styler.unify.git
BioSisyphus
styler.unify
styler.unify
main

搜索帮助