2023-05-18 17:02:58 +00:00
|
|
|
[tool.poetry]
|
|
|
|
authors = ["Laurent Fainsin <laurent@fainsin.bzh>"]
|
|
|
|
description = "You own little LLM in your matrix chatroom"
|
|
|
|
homepage = "https://github.com/Laurent2916/nio-llm"
|
|
|
|
license = "MIT"
|
|
|
|
name = "nio-llm"
|
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://github.com/Laurent2916/nio-llm.git"
|
2023-10-11 10:31:47 +00:00
|
|
|
version = "1.0.0"
|
2023-05-18 17:02:58 +00:00
|
|
|
|
2023-05-24 20:23:56 +00:00
|
|
|
[tool.poetry.scripts]
|
|
|
|
nio-llm = "nio_llm.main:main"
|
|
|
|
|
2023-05-18 17:02:58 +00:00
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = "^3.11"
|
2023-06-12 19:35:32 +00:00
|
|
|
jsonargparse = { version = "^4.21.2", extras = ["signatures"] }
|
2023-05-18 17:15:58 +00:00
|
|
|
llama-cpp-python = "^0.1.50"
|
2023-06-12 19:35:32 +00:00
|
|
|
huggingface-hub = "^0.14.1"
|
2023-05-23 19:14:25 +00:00
|
|
|
matrix-nio = "^0.20.2"
|
2023-05-24 19:32:05 +00:00
|
|
|
rich = "^13.3.5"
|
2023-05-18 17:02:58 +00:00
|
|
|
|
|
|
|
[tool.poetry.group.dev]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
black = "^23.3.0"
|
|
|
|
isort = "^5.12.0"
|
2023-05-24 17:45:19 +00:00
|
|
|
mypy = "^1.3.0"
|
2023-05-24 19:32:05 +00:00
|
|
|
ruff = "^0.0.267"
|
2023-05-18 17:02:58 +00:00
|
|
|
|
|
|
|
[tool.ruff]
|
2023-10-11 10:31:47 +00:00
|
|
|
target-version = "py311"
|
2023-05-18 17:02:58 +00:00
|
|
|
line-length = 120
|
2023-10-11 10:31:47 +00:00
|
|
|
ignore-init-module-imports = true
|
|
|
|
include = [
|
|
|
|
"*.py", # regular python files
|
|
|
|
"*.pyi", # python stub files
|
|
|
|
"*.ipynb", # jupyter notebooks
|
|
|
|
"**/pyproject.toml", # python config files
|
|
|
|
]
|
2023-05-24 20:02:47 +00:00
|
|
|
ignore = [
|
2023-10-11 10:31:47 +00:00
|
|
|
"G004", # Logging statement uses f-string
|
|
|
|
"EM102", # Exception must not use an f-string literal, assign to variable first
|
|
|
|
"D100", # Missing docstring in public module
|
|
|
|
"D104", # Missing docstring in public package
|
|
|
|
"N812", # Lowercase imported as non lowercase
|
2023-05-24 20:02:47 +00:00
|
|
|
]
|
2023-05-18 17:02:58 +00:00
|
|
|
select = [
|
|
|
|
"A", # flake8-builtins
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
"C90", # mccabe
|
|
|
|
"COM", # flake8-commas
|
|
|
|
"D", # pydocstyle
|
|
|
|
"EM", # flake8-errmsg
|
|
|
|
"E", # pycodestyle errors
|
|
|
|
"F", # Pyflakes
|
|
|
|
"G", # flake8-logging-format
|
|
|
|
"I", # isort
|
|
|
|
"N", # pep8-naming
|
|
|
|
"PIE", # flake8-pie
|
|
|
|
"PTH", # flake8-use-pathlib
|
2023-10-11 10:31:47 +00:00
|
|
|
"TD", # flake8-todo
|
|
|
|
"FIX", # flake8-fixme
|
2023-05-18 17:02:58 +00:00
|
|
|
"RET", # flake8-return
|
|
|
|
"RUF", # ruff
|
|
|
|
"S", # flake8-bandit
|
|
|
|
"TCH", # flake8-type-checking
|
|
|
|
"TID", # flake8-tidy-imports
|
|
|
|
"UP", # pyupgrade
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
]
|
|
|
|
|
2023-05-29 16:26:41 +00:00
|
|
|
[tool.ruff.pydocstyle]
|
|
|
|
convention = "google"
|
|
|
|
|
2023-10-11 10:31:47 +00:00
|
|
|
[tool.ruff.isort]
|
|
|
|
known-first-party = ["nio_llm"]
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"__init__.py" = [
|
|
|
|
"F401", # Imported but unused
|
|
|
|
]
|
|
|
|
"src/aube/main.py" = [
|
|
|
|
"F401", # Imported but unused
|
|
|
|
"E402", # Module level import not at top of file
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.mccabe]
|
|
|
|
max-complexity = 5 # C901
|
|
|
|
|
2023-05-18 17:02:58 +00:00
|
|
|
[tool.black]
|
|
|
|
exclude = '''
|
|
|
|
/(
|
|
|
|
\.git
|
|
|
|
\.venv
|
|
|
|
)/
|
|
|
|
'''
|
2023-10-11 10:31:47 +00:00
|
|
|
include = '\.pyi?$'
|
|
|
|
line-length = 120
|
|
|
|
target-version = ["py311"]
|