Skip to content
Snippets Groups Projects
Commit e5a43c57 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Add pre-commit hooks for Python code

parent 45593a11
No related branches found
No related tags found
1 merge request!61Add pre-commit hooks
# Copyright (c) 2013-2024 MPI-M, Luis Kornblueh, Rahul Sinha and DWD, Florian Prill. All rights reserved.
#
# SPDX-License-Identifier: CC0-1.0
#
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- id: isort
name: isort (templates)
types_or: [file]
files: (python\.sh|\.py)\.in$
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
hooks:
- id: black
- id: black
name: black (templates)
types_or: [file]
files: (python\.sh|\.py)\.in$
- repo: https://github.com/csachs/pyproject-flake8
rev: v7.0.0
hooks:
- id: pyproject-flake8
- id: pyproject-flake8
name: pyproject-flake8 (templates)
types: [file]
files: (python\.sh|\.py)\.in$
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment