Add pre-commit configuration (#83)

chore: add pre-commit configuration
This commit is contained in:
Mike 2021-10-20 19:52:15 +00:00 committed by GitHub
parent 013cd58109
commit 990bdbd1cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 5 deletions

17
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,17 @@
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
language_version: python3
entry: black --target-version=py36

View file

@ -20,7 +20,7 @@ if __name__ == "__main__":
'tests.attributes',
'tests.misc_models',
'tests.set_and_get',
'tests.forms'
'tests.forms',
]
else:
tests = ['tests.{}'.format(arg) for arg in sys.argv[1:]]