-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (96 loc) · 2.08 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[tool.poetry]
name = "oregpt"
version = "0.2.1"
description = "A tiny GPT CLI tool"
authors = ["Shinichi Takayanagi <[email protected]>"]
homepage = "https://github.com/shinichi-takayanagi/oregpt"
repository = "https://github.com/shinichi-takayanagi/oregpt"
license = "MIT"
readme = "README.md"
keywords = ["gpt-chatbot", "gpt-cli", "openai-cli"]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Topic :: Utilities",
]
packages = [
{ include = "oregpt"}
]
include = [
{ path = "tests", format = "sdist" }
]
[tool.poetry.scripts]
oregpt = "oregpt.main:main"
[tool.poetry.dependencies]
python = "^3.10"
openai = "^0.27.6"
pyyaml = "^6.0"
prompt-toolkit = "^3.0.38"
click = "^8.1.3"
[tool.poetry.group.test.dependencies]
pytest = "^7.3.1"
[tool.poetry.group.lint.dependencies]
black = "^23.3.0"
isort = "^5.12.0"
mypy = "^1.2.0"
autoflake = "^2.1.1"
pre-commit = "^3.3.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# === Black ===
[tool.black]
line-length = 120
include = '\.pyi?$'
extend-exclude = '''
/(
| dist
| .pytest_cache
| .tox
| docs
| docs_src
| .venv
| .mypy_cache
)/
'''
# === Autoflake ===
[tool.autoflake]
remove-all-unused-imports = true
remove-duplicate-keys = true
remove-unused-variables = true
# === Isort ===
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
skip_glob = []
# === Pytest ===
[tool.pytest.ini_options]
norecursedirs = ["venv", ".venv", ".env"]
testpaths = [
"tests",
]
console_output_style = "progress"
log_cli = true
# === Mypy ===
[tool.mypy]
strict = true
scripts_are_modules = true
check_untyped_defs = true
disallow_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
no_site_packages = true
show_error_codes = true
strict_optional = true
warn_return_any = true
warn_unused_ignores = true
exclude = [
"tests",
]