Add missing file
This commit is contained in:
parent
54a0cdbaf2
commit
a14cbf9381
2 changed files with 24 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,6 +10,7 @@ __pycache__
|
||||||
*.db
|
*.db
|
||||||
/*.yaml
|
/*.yaml
|
||||||
!example-config.yaml
|
!example-config.yaml
|
||||||
|
!.pre-commit-config.yaml
|
||||||
|
|
||||||
logs/
|
logs/
|
||||||
plugins/
|
plugins/
|
||||||
|
|
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: trailing-whitespace
|
||||||
|
exclude_types: [markdown]
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-added-large-files
|
||||||
|
# TODO convert to use the upstream psf/black when
|
||||||
|
# https://github.com/psf/black/issues/2493 gets fixed
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
name: black
|
||||||
|
entry: black --check
|
||||||
|
language: system
|
||||||
|
files: ^maubot/.*\.py$
|
||||||
|
- repo: https://github.com/PyCQA/isort
|
||||||
|
rev: 5.10.1
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
files: ^maubot/.*$
|
Loading…
Reference in a new issue