forked from mistralai-sf24/hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
46 lines (41 loc) · 803 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
[tool.black]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
line-length = 88
[tool.isort]
known_third_party = []
line_length = 88
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
follow_imports = "normal"
[tool.ruff]
select = ["E", "F", "W", "C90", "I", "C4", "PT", "RSE", "TID", "TCH", "FLY", "NPY", "RUF", "T10"]
line-length = 88
ignore = ["E501"]
target-version = "py38"
exclude = [".git","__pycache__",".vscode",".mypy_cache"]
[tool.ruff.mccabe]
max-complexity = 20
[tool.pytest.ini_options]
python_classes = [
"!TestConfig",
]
addopts = [
"-Werror",
"-W ignore::DeprecationWarning:pkg_resources",
"-W ignore::DeprecationWarning:torch.utils.tensorboard",
]
testpaths = []