forked from CLCMacTeam/besapi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.45 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
---
# run on only items staged in git: pre-commit
# automatically run on commit: pre-commit install
# check all files in repo: pre-commit run --all-files
# update all checks to latest: pre-commit autoupdate
# https://github.com/pre-commit/pre-commit-hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-json
- id: check-added-large-files
args: ["--maxkb=150"]
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-xml
- id: end-of-file-fixer
# https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/
# - id: mixed-line-ending
# args: ['--fix=no']
- id: requirements-txt-fixer
- id: trailing-whitespace
# args: [--markdown-linebreak-ext=md]
- id: detect-private-key
# - id: no-commit-to-branch
# args: [--branch, main]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args: [-c=.yamllint.yaml]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
hooks:
- id: check-github-workflows
args: ["--verbose"]
- id: check-dependabot