-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
98 lines (85 loc) · 2.34 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "shelloracle"
description = """ShellOracle is a pluggable terminal utility that takes a natural language description of a \
command and substitutes it into your terminal buffer."""
readme = "README.md"
license = { file = "LICENSE" }
dynamic = ["version"]
authors = [
{ name = "Daniel Copley", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
dependencies = [
"httpx",
"openai",
"prompt-toolkit",
"yaspin",
"tomlkit",
"tomli >= 1.1.0; python_version < '3.11'",
"google-generativeai"
]
[project.scripts]
shor = "shelloracle.__main__:main"
[project.urls]
Homepage = "https://github.com/djcopley/ShellOracle"
Repository = "https://github.com/djcopley/ShellOracle.git"
Issues = "https://github.com/djcopley/ShellOracle/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.hatch-test]
dependencies = [
"pytest~=8.3",
"pytest-cov~=5.0",
"pytest-sugar~=1.0",
"pytest-xdist~=3.6",
"pytest-asyncio~=0.24",
"pytest-httpx~=0.30",
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.types]
template = "hatch-test"
extra-dependencies = [
"mypy~=1.0",
]
[tool.hatch.envs.types.scripts]
check = [
"mypy {args:src/shelloracle}",
"mypy --explicit-package-bases tests"
]
[tool.hatch.envs.profile.scripts]
importtime = "python -X importtime -m shelloracle 2> {args}"
[tool.pytest.ini_options]
pythonpath = "src"
addopts = [
"--import-mode=importlib",
]
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
source = ["src/"]
branch = true
parallel = true
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["INP001", "ARG"]