xyb/drf-passwordless-jwt

View on GitHub
.pre-commit-config.yaml

Summary

Maintainability
Test Coverage
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: check-yaml
      - id: end-of-file-fixer
      - id: trailing-whitespace

  - repo: https://github.com/codespell-project/codespell
    rev: v2.2.5
    hooks:
      - id: codespell

  - repo: https://github.com/PyCQA/autoflake
    rev: v2.2.1
    hooks:
    - id: autoflake
      name: autoflake
      args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"]
      language: python
      files: \.py$

  - repo: https://github.com/asottile/reorder_python_imports
    rev: v3.11.0
    hooks:
      - id: reorder-python-imports
        args:
          - --py37-plus

  - repo: https://github.com/charliermarsh/ruff-pre-commit
    rev: v0.0.290
    hooks:
      - id: ruff
        args:
          - --fix
          - --exit-non-zero-on-fix

  - repo: https://github.com/rtts/djhtml
    rev: '3.0.6'  # replace with the latest tag on GitHub
    hooks:
      - id: djhtml
        entry: djhtml --tabwidth 2
      - id: djcss
        exclude: static/.*
      - id: djjs
        exclude: static/.*

  - repo: https://github.com/asottile/pyupgrade
    rev: v3.11.1
    hooks:
      - id: pyupgrade
        args:
          - --py37-plus

  - repo: https://github.com/asottile/add-trailing-comma
    rev: v3.1.0
    hooks:
      - id: add-trailing-comma
        args:
          - --py36-plus

  - repo: https://github.com/psf/black
    rev: "23.9.1"
    hooks:
      - id: black
        args:
          - --line-length
          - "88"

  - repo: https://github.com/asottile/add-trailing-comma
    rev: v3.1.0
    hooks:
      - id: add-trailing-comma
        args:
          - --py36-plus