new: test: pre- commit config

This commit is contained in:
rachmadaniHaryono 2021-01-11 15:21:59 +08:00
parent 617af331a2
commit 04d62f60c0

20
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
# - id: trailing-whitespace
# - id: end-of-file-fixer
# - id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/pylint/
rev: '2.6'
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: ['--rcfile', 'tests/.pylintrc']
# exclude: tests/functional/|tests/input|tests/extensions/data|tests/regrtest_data/|tests/data/|doc/