|
| 1 | +default_language_version: |
| 2 | + python: python3 |
| 3 | +ci: |
| 4 | + autofix_commit_msg: | |
| 5 | + [pre-commit.ci] auto fixes from pre-commit hooks |
| 6 | + autofix_prs: true |
| 7 | + autoupdate_branch: "pre-commit-autoupdate" |
| 8 | + autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" |
| 9 | + autoupdate_schedule: monthly |
| 10 | + skip: [no-commit-to-branch] |
| 11 | + submodules: false |
| 12 | +repos: |
| 13 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 14 | + rev: v4.6.0 |
| 15 | + hooks: |
| 16 | + - id: check-yaml |
| 17 | + - id: end-of-file-fixer |
| 18 | + - id: trailing-whitespace |
| 19 | + - id: check-case-conflict |
| 20 | + - id: check-merge-conflict |
| 21 | + - id: check-toml |
| 22 | + - id: check-added-large-files |
| 23 | + - repo: https://github.com/psf/black |
| 24 | + rev: 24.4.2 |
| 25 | + hooks: |
| 26 | + - id: black |
| 27 | + - repo: https://github.com/pycqa/flake8 |
| 28 | + rev: 7.0.0 |
| 29 | + hooks: |
| 30 | + - id: flake8 |
| 31 | + - repo: https://github.com/pycqa/isort |
| 32 | + rev: 5.13.2 |
| 33 | + hooks: |
| 34 | + - id: isort |
| 35 | + args: ["--profile", "black"] |
| 36 | + - repo: https://github.com/kynan/nbstripout |
| 37 | + rev: 0.7.1 |
| 38 | + hooks: |
| 39 | + - id: nbstripout |
| 40 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 41 | + rev: v4.4.0 |
| 42 | + hooks: |
| 43 | + - id: no-commit-to-branch |
| 44 | + name: Prevent Commit to Main Branch |
| 45 | + args: ["--branch", "main"] |
| 46 | + stages: [pre-commit] |
| 47 | + - repo: https://github.com/codespell-project/codespell |
| 48 | + rev: v2.3.0 |
| 49 | + hooks: |
| 50 | + - id: codespell |
| 51 | + additional_dependencies: |
| 52 | + - tomli |
| 53 | + # prettier - multi formatter for .json, .yml, and .md files |
| 54 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 55 | + rev: f12edd9c7be1c20cfa42420fd0e6df71e42b51ea # frozen: v4.0.0-alpha.8 |
| 56 | + hooks: |
| 57 | + - id: prettier |
| 58 | + additional_dependencies: |
| 59 | + - "prettier@^3.2.4" |
| 60 | + # docformatter - PEP 257 compliant docstring formatter |
| 61 | + - repo: https://github.com/s-weigand/docformatter |
| 62 | + rev: 5757c5190d95e5449f102ace83df92e7d3b06c6c |
| 63 | + hooks: |
| 64 | + - id: docformatter |
| 65 | + additional_dependencies: [tomli] |
| 66 | + args: [--in-place, --config, ./pyproject.toml] |
0 commit comments