scikit-llm
/
pyproject.toml
92 строки · 1.8 Кб
1[build-system]
2requires = ["setuptools>=61.0"]
3build-backend = "setuptools.build_meta"
4
5[project]
6dependencies = [
7"scikit-learn>=1.1.0,<2.0.0",
8"pandas>=1.5.0,<3.0.0",
9"openai>=1.2.0,<2.0.0",
10"tqdm>=4.60.0,<5.0.0",
11"google-cloud-aiplatform[pipelines]>=1.27.0,<2.0.0"
12]
13name = "scikit-llm"
14version = "1.0.0"
15authors = [
16{ name="Oleh Kostromin", email="kostromin97@gmail.com" },
17{ name="Iryna Kondrashchenko", email="iryna230520@gmail.com" },
18]
19description = "Scikit-LLM: Seamlessly integrate powerful language models like ChatGPT into scikit-learn for enhanced text analysis tasks."
20readme = "README.md"
21license = {text = "MIT"}
22requires-python = ">=3.9"
23classifiers = [
24"Programming Language :: Python :: 3",
25"License :: OSI Approved :: MIT License",
26"Operating System :: OS Independent",
27]
28
29[project.optional-dependencies]
30gpt4all = ["gpt4all>=2.0.0,<3.0.0"]
31annoy = ["annoy>=1.17.2,<2.0.0"]
32
33[tool.ruff]
34select = [
35# pycodestyle
36"E",
37# pyflakes
38"F",
39# pydocstyle
40"D",
41# flake8-bandit
42"S",
43# pyupgrade
44"UP",
45# pep8-naming
46"N",
47]
48# Error E501 (Line too long) is ignored because of docstrings.
49ignore = [
50"S101",
51"S301",
52"S311",
53"D100",
54"D200",
55"D203",
56"D205",
57"D401",
58"E501",
59"N803",
60"N806",
61"D104",
62]
63extend-exclude = ["tests/*.py", "setup.py"]
64target-version = "py39"
65force-exclude = true
66
67[tool.ruff.per-file-ignores]
68"__init__.py" = ["E402", "F401", "F403", "F811"]
69
70[tool.ruff.pydocstyle]
71convention = "numpy"
72
73[tool.mypy]
74ignore_missing_imports = true
75
76[tool.black]
77preview = true
78target-version = ['py39', 'py310', 'py311']
79
80[tool.isort]
81profile = "black"
82filter_files = true
83known_first_party = ["skllm", "skllm.*"]
84skip = ["__init__.py"]
85
86[tool.docformatter]
87close-quotes-on-newline = true # D209
88
89[tool.pytest.ini_options]
90pythonpath = [
91"."
92]
93