-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (47 loc) · 1.28 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
51 lines (47 loc) · 1.28 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: end-of-file-fixer
exclude: .*\.graphql
- repo: local
hooks:
- id: ruff-format
name: ruff format
description: "Run 'ruff format' for extremely fast Python formatting"
entry: ruff format --force-exclude
language: python
types_or: [python, pyi, jupyter]
args: [ --preview ]
- id: ruff-check
name: ruff check
description: "Run 'ruff check' for extremely fast Python linting"
entry: ruff check --force-exclude
language: python
types_or: [ python, pyi, jupyter ]
args: [ --preview ]
- repo: https://github.com/zricethezav/gitleaks
rev: v8.28.0
hooks:
- id: gitleaks
- repo: https://github.com/PyCQA/bandit
rev: '1.8.6'
hooks:
- id: bandit
args: [ -ll ]
# - repo: https://github.com/pylint-dev/pylint
# rev: 23.9.1
# hooks:
# - id: pylint
# name: pylint
# entry: pylint
# language: system
# types: [ python ]
# args:
# [
# "-rn", # Only display messages
# "-sn", # Don't display the score
# ]
# language_version: python3.12