mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
chore: added the very very important pre-commit hooks
This commit is contained in:
parent
b7e7e0b867
commit
68228d0e04
1 changed files with 23 additions and 0 deletions
23
.pre-commit-config.yaml
Normal file
23
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.1.0
|
||||||
|
hooks:
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-yaml
|
||||||
|
- id: debug-statements
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: mixed-line-ending
|
||||||
|
- id: requirements-txt-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
|
||||||
|
- repo: https://github.com/PyCQA/isort
|
||||||
|
rev: 5.12.0
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
args: ["-a", "from __future__ import annotations"]
|
||||||
|
|
||||||
|
- repo: https://github.com/mgedmin/check-manifest
|
||||||
|
rev: "0.47"
|
||||||
|
hooks:
|
||||||
|
- id: check-manifest
|
||||||
|
stages: [manual]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue