Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 756 B
Newer Older
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

default_language_version:
  python: python3.9

Natthan.Pigoux's avatar
Natthan.Pigoux committed
# exclude: |
#     (?x)^(
#         src/DIRAC/Interfaces/API/test/test.*\.jdl
#     )$
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: check-added-large-files

  - repo: https://github.com/psf/black
    rev: 23.1.0
    hooks:
      - id: black
Natthan.Pigoux's avatar
Natthan.Pigoux committed

Natthan.Pigoux's avatar
Natthan.Pigoux committed
  - repo: https://github.com/ikamensh/flynt/
    rev: "0.77"
    hooks:
      - id: flynt
Natthan.Pigoux's avatar
Natthan.Pigoux committed

  - repo: https://github.com/asottile/pyupgrade
    rev: v3.3.1
    hooks:
    -   id: pyupgrade
        args: ["--py39-plus"]