File: .pre-commit-config.yaml

package info (click to toggle)
python-django-guid 3.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 664 kB
  • sloc: python: 1,267; makefile: 16
file content (52 lines) | stat: -rw-r--r-- 1,703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
repos:
  - repo: https://github.com/ambv/black
    rev: 23.12.1
    hooks:
      - id: black
        args: ['--quiet']
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: check-case-conflict
      - id: end-of-file-fixer
      - id: trailing-whitespace
      - id: check-ast
      - id: check-json
      - id: check-merge-conflict
      - id: detect-private-key
      - id: double-quote-string-fixer
  - repo: https://github.com/pycqa/flake8
    rev: 6.1.0
    hooks:
      - id: flake8
        additional_dependencies: [
          'flake8-bugbear',  # Looks for likely bugs and design problems
          'flake8-comprehensions',  # Looks for unnecessary generator functions that can be converted to list comprehensions
          'flake8-deprecated',  # Looks for method deprecations
          'flake8-use-fstring',  # Enforces use of f-strings over .format and %s
          'flake8-print',  # Checks for print statements
          'flake8-docstrings',  # Verifies that all functions/methods have docstrings
          'flake8-type-checking',  # Looks for misconfigured type annotations
          'flake8-annotations',  # Enforces type annotation
        ]
        args: ['--enable-extensions=G']
  - repo: https://github.com/asottile/pyupgrade
    rev: v3.15.0
    hooks:
      - id: pyupgrade
        args: ["--py36-plus"]
  - repo: https://github.com/pycqa/isort
    rev: 5.13.2
    hooks:
      - id: isort
        files: 'django_guid/.*'
      - id: isort
        files: 'tests/.*'
  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.8.0
    hooks:
      - id: mypy
        additional_dependencies:
          [
            django
          ]