generated from rcmdnk/python-template
/
pyproject.toml
79 lines (67 loc) · 2.68 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[tool.poetry]
name = "chatgpt-prompt-wrapper"
version = "0.0.17"
description = "CLI tool to wrap ChatGPT Python API."
authors = ["rcmdnk <rcmdnk@gmail.com>"]
repository = "https://github.com/rcmdnk/chatgpt-prompt-wrapper"
homepage = "https://github.com/rcmdnk/chatgpt-prompt-wrapper"
readme = "README.md"
license = "apache-2.0"
keywords = ["chat", "gpt", "openai", "cli"]
classifiers = ["Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Communications :: Chat", "Topic :: Utilities"]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
tomli = { version = "^2.0.1", python = "<3.11"}
openai = "0.28.0"
tiktoken = "^0.6.0"
prompt-toolkit = "^3.0.39"
conf-finder = "^0.1.2"
inherit-docstring = "^0.1.3"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"
pytest-cov = "^5.0.0"
pytest-xdist = "^3.2.1"
pytest-benchmark = "^4.0.0"
pyproject-pre-commit = "^0.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "-n auto"
testpaths = ["tests",]
[tool.black]
line-length = 79
[tool.autoflake]
remove-all-unused-imports = true
expand-star-imports = true
remove-duplicate-keys = true
remove-unused-variables = true
[tool.autopep8]
ignore = "E203,E501,W503"
recursive = true
aggressive = 3
[tool.isort]
profile = "black"
line_length = 79
[tool.flake8]
# E203 is not PEP8 compliant and black insert space around slice: [Frequently Asked Questions - Black 22.12.0 documentation](https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated)
# E501: Line too long. Disable it to allow long lines of comments and print lines which black allows.
# W503 is the counter part of W504, which follows current PEP8: [Line break occurred before a binary operator (W503)](https://www.flake8rules.com/rules/W503.html)
# D100~D106: Missing docstrings other than class (D101)
# D401: First line should be in imperative mood
ignore = "E203,E501,W503,D100,D102,D103,D104,D105,D106,D401"
max-complexity = 10
docstring-convention = "numpy"
[tool.bandit]
exclude_dirs = ["tests"]
[tool.mypy]
files = ["src/**/*.py"]
strict = true
warn_return_any = false
ignore_missing_imports = true
scripts_are_modules = true
install_types = true
non_interactive = true
[tool.poetry.scripts]
cg = "chatgpt_prompt_wrapper:main"
chatgpt_prompt_wrapper = "chatgpt_prompt_wrapper:main"