-
Notifications
You must be signed in to change notification settings - Fork 572
/
pyproject.toml
55 lines (51 loc) · 1.21 KB
/
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
50
51
52
53
54
55
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
scripts_are_modules = true
[tool.pytest.ini_options]
# Add the specified `OPTS` to the set of command line arguments as if they had
# been specified by the user.
addopts = "-Werror::FutureWarning --log-cli-level=INFO -sv --durations=0"
# The defined variables will be added to the environment before any tests are
# run, part of pytest-env plugin
env = [
"DISABLE_SYMLINKS_IN_WINDOWS_TESTS=1",
"HF_TOKEN=",
"HUGGINGFACE_CO_STAGING=1",
"HUGGING_FACE_HUB_TOKEN=",
]
[tool.ruff]
exclude = [
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".venv*",
"__pypackages__",
"_build",
"build",
"dist",
"venv",
]
line-length = 119
# Ignored rules:
# "E501" -> line length violation
lint.ignore = ["E501"]
lint.select = ["E", "F", "I", "W"]
[tool.ruff.lint.isort]
known-first-party = ["huggingface_hub"]
lines-after-imports = 2
[tool.tomlsort]
all = true
in_place = true
spaces_before_inline_comment = 2 # Match Python PEP 8
spaces_indent_inline_array = 4 # Match Python PEP 8
trailing_comma_inline_array = true