-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (34 loc) · 1.1 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
ci:
skip: [hatch-lint]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-docstring-first
- id: debug-statements
- id: check-ast
- id: check-toml
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=auto'] # Replace "auto" with "lf" to enforce Linux/Mac line endings or "crlf" for Windows
# The built-in `check-json` hook does not support JSON5 files (~= JSON with comments and trailing commas). To lint
# JSON5 files, use the `check-json5` hook instead.
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
- repo: local
hooks:
- id: hatch-lint
name: hatch-simple-lint
entry: hatch run lint:simple-lint
language: system
types_or: [python, pyi, jupyter]
exclude: src/python_project/__version__.py
verbose: true