-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (42 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (42 loc) · 1.03 KB
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
---
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.3.0"
hooks:
- id: check-added-large-files
- id: end-of-file-fixer
exclude: .vscode
- id: trailing-whitespace
- id: check-ast
- id: check-yaml
- id: check-toml
- id: check-json
- id: pretty-format-json
exclude: .vscode
- id: check-symlinks
- id: check-shebang-scripts-are-executable
- id: forbid-new-submodules
- id: mixed-line-ending
- repo: local
hooks:
- id: black
name: black
entry: black
language: python
pass_filenames: true
types_or: [python, pyi]
- id: isort
name: isort
entry: isort
language: python
pass_filenames: true
types_or: [python, pyi]
- id: pytest-check
name: pytest-check
entry: pytest
args: ["--cov"]
language: system
pass_filenames: false
always_run: true