|
| 1 | +repos: |
| 2 | + - repo: https://github.com/PyCQA/flake8 |
| 3 | + rev: 5.0.4 |
| 4 | + hooks: |
| 5 | + - id: flake8 |
| 6 | + args: [ "--max-line-length=2200", "--ignore=E131,E125,W503,W504,E203,E231,E702,E128" ] |
| 7 | + exclude: '^tests/.*/assets/' |
| 8 | + - repo: https://github.com/PyCQA/isort |
| 9 | + rev: 5.11.5 |
| 10 | + hooks: |
| 11 | + - id: isort |
| 12 | + exclude: '^tests/.*/assets/' |
| 13 | + - repo: https://github.com/pre-commit/mirrors-yapf |
| 14 | + rev: v0.32.0 |
| 15 | + hooks: |
| 16 | + - id: yapf |
| 17 | + args: ["--style={based_on_style: google, column_limit: 200, indent_width: 4}"] |
| 18 | + exclude: '^tests/.*/assets/' |
| 19 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 20 | + rev: v4.3.0 |
| 21 | + hooks: |
| 22 | + - id: trailing-whitespace |
| 23 | + - id: check-yaml |
| 24 | + - id: end-of-file-fixer |
| 25 | + - id: requirements-txt-fixer |
| 26 | + - id: double-quote-string-fixer |
| 27 | + - id: check-merge-conflict |
| 28 | + - id: fix-encoding-pragma |
| 29 | + args: [ "--remove" ] |
| 30 | + - id: mixed-line-ending |
| 31 | + args: [ "--fix=lf" ] |
| 32 | + exclude: '^tests/.*/assets/|\.ipynb$' |
| 33 | + - repo: https://github.com/executablebooks/mdformat |
| 34 | + rev: 0.7.9 |
| 35 | + hooks: |
| 36 | + - id: mdformat |
| 37 | + args: [ "--number", "--table-width", "200" ] |
| 38 | + additional_dependencies: |
| 39 | + - mdformat-openmmlab |
| 40 | + - mdformat_frontmatter |
| 41 | + - linkify-it-py |
| 42 | + exclude: '^tests/.*/assets/' |
| 43 | + - repo: https://github.com/myint/docformatter |
| 44 | + rev: v1.3.1 |
| 45 | + hooks: |
| 46 | + - id: docformatter |
| 47 | + args: [ "--in-place", "--wrap-descriptions", "119" ] |
| 48 | + - repo: local |
| 49 | + hooks: |
| 50 | + - id: clear-jupyter-notebook-output |
| 51 | + name: Clear Jupyter Notebook Output |
| 52 | + entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace |
| 53 | + language: system |
| 54 | + files: \.ipynb$ |
| 55 | + types: [file] |
0 commit comments