|
| 1 | +--- |
| 2 | +repos: |
| 3 | + - repo: meta |
| 4 | + hooks: |
| 5 | + - id: check-useless-excludes |
| 6 | + # - id: check-hooks-apply # Leave nbqa in here. |
| 7 | + # - id: identity # Prints all files passed to pre-commits. Debugging. |
| 8 | + - repo: https://github.com/lyz-code/yamlfix |
| 9 | + rev: 1.17.0 |
| 10 | + hooks: |
| 11 | + - id: yamlfix |
| 12 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 13 | + rev: v5.0.0 |
| 14 | + hooks: |
| 15 | + - id: check-added-large-files |
| 16 | + args: [--maxkb=25] |
| 17 | + - id: check-case-conflict |
| 18 | + - id: check-merge-conflict |
| 19 | + - id: check-vcs-permalinks |
| 20 | + - id: check-yaml |
| 21 | + - id: check-toml |
| 22 | + - id: debug-statements |
| 23 | + - id: end-of-file-fixer |
| 24 | + - id: fix-byte-order-marker |
| 25 | + types: [text] |
| 26 | + - id: forbid-submodules |
| 27 | + - id: mixed-line-ending |
| 28 | + args: [--fix=lf] |
| 29 | + description: Forces to replace line ending by the UNIX 'lf' character. |
| 30 | + - id: name-tests-test |
| 31 | + args: [--pytest-test-first] |
| 32 | + - id: trailing-whitespace |
| 33 | + - id: check-ast |
| 34 | + - id: check-docstring-first |
| 35 | + - repo: https://github.com/adrienverge/yamllint.git |
| 36 | + rev: v1.35.1 |
| 37 | + hooks: |
| 38 | + - id: yamllint |
| 39 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 40 | + rev: v0.9.9 |
| 41 | + hooks: |
| 42 | + # Run the linter. |
| 43 | + - id: ruff |
| 44 | + types_or: [python, jupyter] |
| 45 | + args: |
| 46 | + - --fix |
| 47 | + # Run the formatter. |
| 48 | + - id: ruff-format |
| 49 | + types_or: [python, jupyter] |
| 50 | + - repo: https://github.com/kynan/nbstripout |
| 51 | + rev: 0.8.1 |
| 52 | + hooks: |
| 53 | + - id: nbstripout |
| 54 | + args: |
| 55 | + - --extra-keys |
| 56 | + - metadata.kernelspec metadata.language_info.version metadata.vscode |
| 57 | + - repo: https://github.com/executablebooks/mdformat |
| 58 | + rev: 0.7.22 |
| 59 | + hooks: |
| 60 | + - id: mdformat |
| 61 | + additional_dependencies: [mdformat-gfm, mdformat-gfm-alerts, mdformat-ruff] |
| 62 | + args: [--wrap, '88'] |
| 63 | + files: (README\.md) |
| 64 | + - repo: https://github.com/executablebooks/mdformat |
| 65 | + rev: 0.7.22 |
| 66 | + hooks: |
| 67 | + - id: mdformat |
| 68 | + additional_dependencies: [mdformat-myst, mdformat-ruff] |
| 69 | + args: [--wrap, '88'] |
| 70 | + files: (docs_template/.) |
| 71 | + - repo: https://github.com/codespell-project/codespell |
| 72 | + rev: v2.4.1 |
| 73 | + hooks: |
| 74 | + - id: codespell |
| 75 | + exclude: pixi.lock |
| 76 | + - repo: local |
| 77 | + hooks: |
| 78 | + - id: forbid-to-commit |
| 79 | + name: Don't commit common R artifacts |
| 80 | + entry: Cannot commit .Rhistory, .RData, .Rds or .rds. |
| 81 | + language: fail |
| 82 | + files: \.(Rhistory|RData|Rds|rds)$ |
| 83 | + # `exclude: <regex>` to allow committing specific files{% endif %} |
| 84 | +ci: |
| 85 | + autoupdate_schedule: monthly |
0 commit comments