Skip to content

Commit

Permalink
pre-commit: initialize with black & isort
Browse files Browse the repository at this point in the history
  • Loading branch information
sumnerevans committed Jan 21, 2022
1 parent c535bff commit 6c5300c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ trim_trailing_whitespace = false
[*.{yaml,yml,py,md}]
indent_style = space

[{.gitlab-ci.yml,*.md,.github/workflows/*.yml}]
[{.gitlab-ci.yml,*.md,.github/workflows/*.yml,.pre-commit-config.yaml}]
indent_size = 2
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
files: ^(mausignald|mautrix_signal)/.*$
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
files: ^(mausignald|mautrix_signal)/.*$

0 comments on commit 6c5300c

Please sign in to comment.