File: .pre-commit-config.yaml

package info (click to toggle)
python-sqlalchemy-utils 0.42.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,236 kB
  • sloc: python: 13,002; makefile: 20
file content (23 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Run `pre-commit autoupdate` to update the hook versions.

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: check-yaml
      - id: end-of-file-fixer
      - id: trailing-whitespace

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.12.2
    hooks:
      - id: ruff-check
        args: [--fix]
      - id: ruff-format

  - repo: https://github.com/asottile/pyupgrade
    rev: v3.20.0
    hooks:
      - id: pyupgrade
        name: "Enforce Python 3.9+ idioms"
        args: ["--py39-plus"]