|
| 1 | +repos: |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.3.0 |
| 4 | + hooks: |
| 5 | + - id: check-added-large-files |
| 6 | + - id: check-json |
| 7 | + exclude: asv.conf.json |
| 8 | + - id: check-toml |
| 9 | + - id: check-yaml |
| 10 | + exclude: conda/meta.yaml |
| 11 | + - id: detect-private-key |
| 12 | + - id: end-of-file-fixer |
| 13 | + - id: trailing-whitespace |
| 14 | + args: [ --markdown-linebreak-ext=md ] |
| 15 | + exclude: '\.svg' |
| 16 | + - repo: https://github.com/pycqa/isort |
| 17 | + rev: 5.10.1 |
| 18 | + hooks: |
| 19 | + - id: isort |
| 20 | + name: isort (python) |
| 21 | + - repo: https://github.com/pre-commit/mirrors-yapf |
| 22 | + rev: v0.32.0 |
| 23 | + hooks: |
| 24 | + - id: yapf |
| 25 | + args: [ "-i", "-r" ] |
| 26 | + types: [ "python" ] |
| 27 | + additional_dependencies: [ "toml" ] |
| 28 | + - repo: https://github.com/kynan/nbstripout |
| 29 | + rev: 0.6.0 |
| 30 | + hooks: |
| 31 | + - id: nbstripout |
| 32 | + types: [ "jupyter" ] |
| 33 | + args: [ "--drop-empty-cells", |
| 34 | + "--extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm'" ] |
| 35 | + - repo: https://github.com/pycqa/flake8 |
| 36 | + rev: 4.0.1 |
| 37 | + hooks: |
| 38 | + - id: flake8 |
| 39 | + types: ["python"] |
| 40 | + additional_dependencies: ["flake8-bugbear==22.10.27"] |
| 41 | + - repo: https://github.com/pycqa/bandit |
| 42 | + rev: 1.7.4 |
| 43 | + hooks: |
| 44 | + - id: bandit |
| 45 | + additional_dependencies: ["bandit[toml]"] |
| 46 | + args: ["-c", "pyproject.toml"] |
| 47 | + - repo: https://github.com/codespell-project/codespell |
| 48 | + rev: v2.2.2 |
| 49 | + hooks: |
| 50 | + - id: codespell |
| 51 | + additional_dependencies: |
| 52 | + - tomli |
| 53 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 54 | + rev: v1.9.0 |
| 55 | + hooks: |
| 56 | + - id: python-no-eval |
| 57 | + exclude: "object_list.py" |
| 58 | + - id: python-no-log-warn |
| 59 | + - id: python-use-type-annotations |
| 60 | + - id: rst-backticks |
| 61 | + - id: rst-directive-colons |
| 62 | + - id: rst-inline-touching-normal |
| 63 | + - id: text-unicode-replacement-char |
0 commit comments