2021-10-15 15:49:41 +08:00
|
|
|
# See https://pre-commit.com for more informatio
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-29 11:27:35 +08:00
|
|
|
rev: v4.4.0
|
2021-10-15 15:49:41 +08:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
exclude: ^conda/
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
2022-11-29 11:27:35 +08:00
|
|
|
rev: 6.0.0
|
2021-10-15 15:49:41 +08:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
args:
|
|
|
|
- "--max-line-length=88"
|
|
|
|
- "--ignore=E203,W503"
|
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
2022-12-13 10:55:07 +08:00
|
|
|
rev: 22.12.0
|
2021-10-15 15:49:41 +08:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
args:
|
|
|
|
- --line-length=88
|
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/pydocstyle
|
2023-01-10 11:06:35 +08:00
|
|
|
rev: 6.2.3
|
2021-10-15 15:49:41 +08:00
|
|
|
hooks:
|
|
|
|
- id: pydocstyle
|
2021-10-23 10:35:40 +08:00
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/isort
|
2022-12-27 11:54:30 +08:00
|
|
|
rev: 5.11.4
|
2021-10-23 10:35:40 +08:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: isort (python)
|