git

My personal website source code
Log | Files | Refs | Submodules | README | LICENSE

.pre-commit-config.yaml (2100B)


      1 fail_fast: true
      2 repos:
      3 - repo: https://github.com/pre-commit/pre-commit-hooks
      4   rev: v4.2.0
      5   hooks:
      6   - id: trailing-whitespace
      7   - id: end-of-file-fixer
      8   - id: mixed-line-ending
      9   - id: fix-byte-order-marker
     10   - id: check-merge-conflict
     11   - id: check-json
     12   - id: check-yaml
     13   - id: sort-simple-yaml
     14   - id: check-xml
     15   - id: check-merge-conflict
     16   - id: check-ast
     17   - id: check-executables-have-shebangs
     18   - id: check-shebang-scripts-are-executable
     19   - id: check-toml
     20   - id: check-added-large-files
     21   - id: check-symlinks
     22   - id: destroyed-symlinks
     23   - id: detect-private-key
     24   - id: fix-encoding-pragma
     25     args: [--remove]
     26   - id: no-commit-to-branch
     27     args: [--branch, master]
     28   - id: requirements-txt-fixer
     29 - repo: https://github.com/pre-commit-ci/pre-commit-ci-config
     30   rev: v1.5.1
     31   hooks:
     32   - id: check-pre-commit-ci-config
     33 - repo: https://github.com/pre-commit/pre-commit
     34   rev: v2.18.1
     35   hooks:
     36   - id: validate_manifest
     37 - repo: https://github.com/asottile/reorder_python_imports
     38   rev: v3.0.1
     39   hooks:
     40   - id: reorder-python-imports
     41     args: [--py39-plus]
     42 - repo: https://github.com/asottile/add-trailing-comma
     43   rev: v2.2.2
     44   hooks:
     45   - id: add-trailing-comma
     46     args: [--py36-plus]
     47 - repo: https://github.com/asottile/pyupgrade
     48   rev: v2.32.0
     49   hooks:
     50   - id: pyupgrade
     51     args: [--py39-plus]
     52 - repo: https://github.com/asottile/setup-cfg-fmt
     53   rev: v1.20.1
     54   hooks:
     55   - id: setup-cfg-fmt
     56 - repo: https://github.com/sirosen/check-jsonschema
     57   rev: 0.14.2
     58   hooks:
     59     - id: check-github-workflows
     60     - id: check-github-actions
     61     - id: check-azure-pipelines
     62     - id: check-readthedocs
     63     - id: check-travis
     64 - repo: https://github.com/AleksaC/hadolint-py
     65   rev: v2.10.0
     66   hooks:
     67     - id: hadolint
     68       args:
     69         - '--ignore'
     70         - 'DL3059'
     71 - repo: https://github.com/shellcheck-py/shellcheck-py
     72   rev: v0.8.0.4
     73   hooks:
     74     - id: shellcheck
     75       args:
     76         - "--exclude=1071,1090,1091,2001"
     77 - repo: https://github.com/asottile/yesqa
     78   rev: v1.3.0
     79   hooks:
     80     - id: yesqa
     81 ci:
     82   autofix_prs: false
     83   autoupdate_commit_msg: 'chore(pre-commit): bump repositories'