forked from debops/debops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
61 lines (61 loc) · 1.65 KB
/
.pre-commit-config.yaml
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
53
54
55
56
57
58
59
60
61
---
# Copyright (C) 2023 DebOps <https://debops.org/>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
#
# Use `pre-commit autoupdate` to update this file.
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
exclude: ".*.j2"
- id: check-symlinks
- id: check-toml
# - id: check-yaml
- id: destroyed-symlinks
- id: debug-statements
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args:
- "--remove"
- id: mixed-line-ending
args:
- "--fix=lf"
- id: pretty-format-json
args:
- "--autofix"
- "--no-sort-keys"
- id: trailing-whitespace
exclude: "LICENSES/.*"
- repo: "https://github.com/codespell-project/codespell"
rev: v2.2.2
hooks:
- id: codespell
additional_dependencies:
- tomli
# - repo: "https://github.com/asottile/pyupgrade"
# rev: v3.2.2
# hooks:
# - id: pyupgrade
# - repo: "https://github.com/asottile/add-trailing-comma"
# rev: v2.3.0
# hooks:
# - id: add-trailing-comma
# args: [--py36-plus]
# - repo: "https://github.com/PyCQA/isort"
# rev: 5.10.1
# hooks:
# - id: isort
# - repo: "https://github.com/psf/black"
# rev: 22.10.0
# hooks:
# - id: black