/
pyproject.toml
45 lines (37 loc) · 953 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
[tool.bandit]
skips = ["B101", "B301", "B403"]
[tool.black]
line-length = 119
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 119
default_section = "THIRDPARTY"
known_third_party = ["numpy", "tiktoken", "torch", "transformers"]
skip = ["__init__.py"]
[tool.pylint.MASTER]
ignore-patterns = "test_.*?py"
[tool.pylint.MESSAGE_CONTROL]
disable = """
line-too-long,
abstract-method,
no-member,
duplicate-code,
"""
enable = "useless-suppression"
[tool.pylint.REPORTS]
reports="no"
[tool.pylint.FORMAT]
max-line-length="119"
[tool.pylint.BASIC]
good-names = "_,i,e,setUp,tearDown,maxDiff"
[tool.pylint.SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines = 4
# Ignore comments when computing similarities.
ignore-comments = "yes"
# Ignore docstrings when computing similarities.
ignore-docstrings = "yes"
# Ignore imports when computing similarities.
ignore-imports = "yes"