dgahle / dgahle/PythonRepositoryTemplate

pre-commit git hook

未关闭
#26 0 条评论 0 个 reaction 已指派 1 人 已被 @dgahle 认领 在 GitHub 查看
enhancement good first issue
主要语言
Python
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Below is example YAML code for added precommit git hooks.

```
repos:
- repo: local
hooks:
- id: black
name: running black
entry: black
language: system
types: [python]
- id: flake8
name: running flake8
entry: flake8
language: system
types: [python]
- id: isort
args: ["--profile", "black"]
name: running isort
entry: isort
language: system
types: [python]
```

Useful:
- https://medium.com/@pijpijani/smarter-commits-with-git-pre-commit-hooks-9c7bb3f699bf
- https://stackoverflow.com/questions/67795922/understanding-how-to-configure-pre-commit-with-repo-local/67796237#67796237
- https://stackoverflow.com/questions/64011304/running-pytest-as-a-pre-commit-hook-no-such-file-or-directory-issue

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。