Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 1.31 KiB
Newer Older
  • Learn to ignore specific revisions
  •   - repo: https://github.com/pre-commit/pre-commit-hooks
        rev: v4.4.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
    
      - repo: https://github.com/psf/black
        rev: 23.3.0
        hooks:
          - id: black
    
      - repo: https://github.com/pycqa/isort
    
        rev: 5.12.0
        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.0.267"
    
    Oscar Gustafsson's avatar
    Oscar Gustafsson committed
        hooks:
          - id: ruff
    
    
      - repo: https://github.com/adamchainz/blacken-docs
        rev: 1.13.0
        hooks:
          - id: blacken-docs
    
      - repo: https://github.com/asottile/pyupgrade
        rev: v3.4.0
        hooks:
          - id: pyupgrade
            args: [--py38-plus]
    
      - repo: https://github.com/pre-commit/mirrors-prettier
        rev: v3.0.0-alpha.9-for-vscode
        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