Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (49 loc) · 1.6 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
53 lines (49 loc) · 1.6 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
45
46
47
48
49
50
51
52
53
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
exclude: ^(tests|docs|examples)/
- id: trailing-whitespace
exclude: ^(tests|docs|examples)/
- id: check-added-large-files
args: [--maxkb=100]
exclude: ^(tests|docs|examples)/
- id: check-ast
exclude: ^(tests|docs|examples)/
- id: check-builtin-literals
exclude: ^(tests|docs|examples)/
- id: check-case-conflict
exclude: ^(tests|docs|examples)/
- id: check-docstring-first
exclude: ^(tests|docs|examples)/
- id: check-merge-conflict
exclude: ^(tests|docs|examples)/
- id: debug-statements
exclude: ^(tests|docs|examples)/
- id: detect-private-key
exclude: ^(tests|docs|examples)/
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]
exclude: ^(tests|docs|examples)/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff-format
exclude: ^(tests|docs|examples|tenxgraph_api/cli/templates)/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: ^(tests|docs|examples|tenxgraph_api/cli/templates)/
- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
hooks:
- id: bandit
args: [-c, pyproject.toml]
additional_dependencies: ["bandit[toml]"]
exclude: ^(tests|docs|examples|tenxgraph_api/cli/templates)/