Spaces:
Sleeping
Sleeping
[tool.poetry] | |
name = "simple-chatbot" | |
version = "0.1.0" | |
description = "" | |
authors = ["YoheiHayamizu <[email protected]>"] | |
license = "mit" | |
readme = "README.md" | |
packages = [{ include = "simple_chatbot" }] | |
[tool.poetry.dependencies] | |
python = "^3.10" | |
streamlit = "^1.40.2" | |
sentencepiece = "^0.2.0" | |
transformers = "^4.47.0" | |
cython = "^3.0.11" | |
torch = "^2.5.1" | |
bs4 = "^0.0.2" | |
[tool.poetry.group.dev.dependencies] | |
ruff = "^0.8.2" | |
[tool.ruff] | |
line-length = 119 | |
indent-width = 4 | |
[tool.ruff.lint] | |
# Flake8、Black、isort、エラー、警告のみを選択 | |
select = ["F", "B", "I", "E", "W"] | |
ignore = [] | |
# すべてのルールに対して修正を許可(`--fix`を使用した場合) | |
fixable = ["ALL"] | |
unfixable = [] | |
# extend-select = ["E501"] | |
[tool.ruff.lint.per-file-ignores] | |
# `__init__.py`ファイルや特定のサブディレクトリで、`E402`(インポート違反)を無視 | |
"__init__.py" = ["E402"] | |
"**/{tests,docs,tools}/*" = ["E402"] | |
[tool.ruff.format] | |
# デフォルトで除外されるディレクトリ | |
exclude = [ | |
".venv", | |
".git", | |
".tox", | |
".mypy_cache", | |
".pytest_cache", | |
"__pycache__", | |
"build", | |
"dist", | |
"docs", | |
"tests", | |
"tools", | |
] | |
indent-style = "space" # Blackと同様に、インデントはスペースで | |
quote-style = "double" # Blackと同様に、文字列はダブルクォートを使用 | |
skip-magic-trailing-comma = false # Blackと同様に、魔法のカンマ(トレイリングコンマ)を無視しない | |
line-ending = "auto" # Blackと同様に、行末文字を自動検出 | |
docstring-code-format = false # ドキュメンテーションストリング内のコード例を自動フォーマット | |
docstring-code-line-length = "dynamic" # ドキュメンテーションストリング内のコードスニペットの行の長さ | |
[build-system] | |
requires = ["poetry-core"] | |
build-backend = "poetry.core.masonry.api" | |