|
3 | 3 | # Note: we are using https://github.com/j178/prek a better `pre-commit`, re-engineered in Rust! |
4 | 4 | # See https://prek.j178.dev/configuration for more information |
5 | 5 | # See https://prek.j178.dev/builtin for more hooks |
| 6 | +ci: |
| 7 | + autofix_prs: false |
| 8 | +fail_fast: false |
6 | 9 | repos: |
| 10 | + - repo: builtin |
| 11 | + hooks: |
| 12 | + - id: check-added-large-files # Prevent giant files from being committed. |
| 13 | + - id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems. |
| 14 | + - id: check-executables-have-shebangs # Checks that non-binary executables have a proper shebang. |
| 15 | + - id: check-json # Attempts to load all json files to verify syntax. |
| 16 | + - id: check-merge-conflict # Check for files that contain merge conflict strings. |
| 17 | + - id: check-symlinks # Checks for symlinks which do not point to anything. |
| 18 | + - id: check-toml # Attempts to load all TOML files to verify syntax. |
| 19 | + - id: check-yaml # Attempts to load all yaml files to verify syntax. |
| 20 | + args: [ '--allow-multiple-documents' ] |
| 21 | + - id: detect-private-key # Checks for the existence of private keys. |
| 22 | + - id: end-of-file-fixer # Ensure newline at EOF. |
| 23 | + - id: fix-byte-order-marker # Remove UTF-8 byte order marker. |
| 24 | + - id: mixed-line-ending # Replaces or checks mixed line ending. |
| 25 | + - id: no-commit-to-branch # Protect specific branches from direct checkins. |
| 26 | + - id: trailing-whitespace # Trim trailing whitespace. |
| 27 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 28 | + rev: v6.0.0 |
| 29 | + hooks: |
| 30 | + - id: check-ast # Simply check whether files parse as valid python. |
| 31 | + - id: check-shebang-scripts-are-executable # Checks that scripts with shebangs are executable. |
| 32 | + - id: check-vcs-permalinks # Ensures that links to vcs websites are permalinks. |
| 33 | + - id: forbid-new-submodules # Prevent addition of new git submodules. |
| 34 | + - id: name-tests-test # verifies that test files are named correctly. |
| 35 | + args: [ '--pytest-test-first' ] |
| 36 | + exclude: ^tests/(utils|components)\.py$ |
| 37 | + - id: pretty-format-json # Checks that all your JSON files are pretty(keys are sorted and indented). |
7 | 38 | - repo: https://github.com/adamchainz/blacken-docs |
8 | | - rev: '1.20.0' |
| 39 | + rev: 1.20.0 |
9 | 40 | hooks: |
10 | | - - id: blacken-docs |
| 41 | + - id: blacken-docs # Run Black on Python code blocks in documentation files. |
11 | 42 | additional_dependencies: |
12 | 43 | - black==25.12.0 |
13 | 44 | args: [ '--check', '--preview', '--line-length=79' ] |
14 | 45 | - repo: https://github.com/rtts/djhtml |
15 | | - rev: '3.0.1' |
| 46 | + rev: 3.0.10 |
16 | 47 | hooks: |
17 | | - - id: djhtml |
| 48 | + - id: djhtml # A pure-Python Django/Jinja template indenter without dependencies. |
18 | 49 | entry: djhtml --check --tabwidth 2 |
19 | | - - id: djcss |
20 | | - entry: djcss --check --tabwidth 2 |
21 | | - - id: djjs |
22 | | - entry: djjs --check --tabwidth 2 |
|
0 commit comments