dgahle / dgahle/PythonRepositoryTemplate

pre-commit git hook

Open
#26 0 comments 0 reactions 1 assignee Claimed by @dgahle View on GitHub
enhancement good first issue
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.