Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 1.38 KiB
Newer Older
  • Learn to ignore specific revisions
  •   - repo: https://github.com/pre-commit/pre-commit-hooks
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
        rev: v4.6.0
    
        hooks:
          - id: mixed-line-ending
            exclude_types: [svg]
          - id: check-added-large-files
          - id: check-docstring-first
          - id: check-yaml
          - id: end-of-file-fixer
            exclude_types: [svg]
          - id: trailing-whitespace
            exclude_types: [svg]
          - id: check-toml
    
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
      - repo: https://github.com/crate-ci/typos
    
        rev: v1.22.9
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
        hooks:
          - id: typos
    
    
      - repo: https://github.com/psf/black
    
        rev: 24.4.2
    
        hooks:
          - id: black
    
      - repo: https://github.com/pycqa/isort
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
        rev: 5.13.2
    
        hooks:
          - id: isort
            name: isort (python)
    
    
      - repo: https://github.com/Carreau/velin
    
        rev: 0.0.11
    
          - id: velin
    
      - repo: https://github.com/charliermarsh/ruff-pre-commit
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
        # Ruff version.
    
        rev: "v0.5.0"
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
        hooks:
          - id: ruff
    
    
      - repo: https://github.com/adamchainz/blacken-docs
    
        rev: 1.18.0
    
        hooks:
          - id: blacken-docs
    
      - repo: https://github.com/asottile/pyupgrade
    
        rev: v3.16.0
    
        hooks:
          - id: pyupgrade
            args: [--py38-plus]
    
      - repo: https://github.com/pre-commit/mirrors-prettier
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
        rev: v4.0.0-alpha.8
    
        hooks:
          - id: prettier
            files: \.(html|md|yml|yaml|toml)
            args: [--prose-wrap=preserve]
            additional_dependencies:
              - prettier@2.7.1
              - prettier-plugin-toml@0.3.1