From 3f0066893b462ddced45e1323c0adf814c06b0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Thu, 18 May 2023 19:02:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20pyproject.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a0859f9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,66 @@ +[tool.poetry] +authors = ["Laurent Fainsin "] +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" +version = "0.1.0" + +[tool.poetry.dependencies] +python = "^3.11" +matrix-nio = "^0.20.2" + +[tool.poetry.group.dev] +optional = true + +[tool.poetry.group.dev.dependencies] +ruff = "^0.0.267" +black = "^23.3.0" +isort = "^5.12.0" + +[tool.ruff] +line-length = 120 +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 + "RET", # flake8-return + "RUF", # ruff + "S", # flake8-bandit + "TCH", # flake8-type-checking + "TID", # flake8-tidy-imports + "UP", # pyupgrade + "W", # pycodestyle warnings +] + +[tool.black] +include = '\.pyi?$' +target-version = ["py311"] +line-length = 120 +exclude = ''' +/( + \.git + \.venv +)/ +''' + +[tool.isort] +multi_line_output = 3 +profile = "black" + +[tool.mypy] +python_version = "3.11" +warn_return_any = true +warn_unused_configs = true