add pre-commit hooks (#7906)

This commit is contained in:
Jirka Borovec 2021-06-10 16:45:54 +02:00 committed by GitHub
parent 839019a3a7
commit 111287b4f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,19 @@ repos:
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-toml
- id: check-case-conflict
- id: check-added-large-files
args: ['--maxkb=350', '--enforce-all']
exclude: |
(?x)^(
docs/source/_static/images/general/fast_2.gif|
docs/source/_static/images/mnist_imgs/pt_to_pl.jpg|
docs/source/_static/images/lightning_module/pt_to_pl.png|
docs/source/_static/images/general/pl_quick_start_full_compressed.gif|
docs/source/_static/images/general/pl_overview_flat.jpg|
docs/source/_static/images/general/pl_overview.gif
)$
- id: detect-private-key
- repo: https://github.com/PyCQA/isort
rev: 5.8.0