安装文件文章来源地址https://www.toymoban.com/news/detail-618741.html
# cat Makefile
.PHONY: quality style test docs
check_dirs := src tests examples
# Check that source code meets quality standards
# this target runs checks on all files
quality:
black --check $(check_dirs)
ruff $(check_dirs)
doc-builder style src tests --max_len 119 --check_only
# Format source code automatically and check is there are any problems left that need manual fixing
style:
black $(check_dirs)
ruff $(check_dirs) --fix
doc-builder style src tests --max_len 119
test:
pytest tests/
# cat pyproject.toml
[tool.black]
line-length = 119
target-version = ['py39']
[tool.ruff]
ignore = ["C901", "E501", "E741", "W605"]
select = ["C", "E", "F", "I", "W"]
line-length = 119
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["peft"]
[isort]
default_sect
文章来源:https://www.toymoban.com/news/detail-618741.html
到了这里,关于python安装peft依赖库的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!