forked from microsoft/dstoolkit-text2sql-and-imageprocessing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (37 loc) · 1004 Bytes
/
.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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# Invalid file checks
- id: check-yaml
- id: check-added-large-files
- id: check-symlinks
- id: check-toml
# File quality checks
- id: end-of-file-fixer
- id: trailing-whitespace
# Git checks
- id: check-merge-conflict
# Python checks
- id: name-tests-test
# JSON files
- id: pretty-format-json
args: [--autofix]
- id: check-json
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.9
hooks:
# Run the linter.
- id: ruff
args: [--fix, --ignore, UP007]
exclude: samples