forked from jplhughes/bon-jailbreaking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (36 loc) · 981 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
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: check-merge-conflict
- id: debug-statements
- id: no-commit-to-branch
args: ['--branch=main']
stages:
- commit
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
# Should match version in requirements.txt
rev: v0.4.1
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# # Run the formatter.
# - id: ruff-format
# types_or: [ python, pyi, jupyter ]
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/kynan/nbstripout
rev: 0.5.0
hooks:
- id: nbstripout