dgahle / dgahle/PythonRepositoryTemplate

pre-commit git hook

Aperta
#26 0 commenti 0 reazioni 1 assegnatario Rivendicata da @dgahle Vedi su GitHub
enhancement good first issue
Lingua principale
Python
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.