1 Star 0 Fork 2

bianzetao / huggingface-hub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pyproject.toml 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
[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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bianzetao/huggingface-hub.git
git@gitee.com:bianzetao/huggingface-hub.git
bianzetao
huggingface-hub
huggingface-hub
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891