forked from jplhughes/bon-jailbreaking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
49 lines (42 loc) · 1000 Bytes
/
pyproject.toml
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
# See https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "bon"
description = "LLM Jailbreaks"
requires-python = ">=3.10"
readme = "README.md"
dynamic = ["version"]
[tool.setuptools]
packages = ["bon"]
[tool.ruff]
target-version = "py311"
extend-include = ["*.ipynb"]
extend-exclude = ["submodules"]
# Line length 120 to makes it easier to have multiple files open side-by-side.
line-length = 120
[tool.ruff.lint]
# Check that imports are sorted
extend-select = ["I"]
[tool.ruff.lint.isort]
# wandb is a package, but sometimes also a folder that gets created.
# We tell ruff to treat it always as a third-party package to make import
# sorting consistent.
known-third-party = ["wandb"]
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''