-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
63 lines (55 loc) · 1.31 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
[project]
name = "llm-cli"
version = "0.1.0"
description = "Add your description here"
authors = [
{ name = "Mahesh", email = "[email protected]" }
]
dependencies = [
"pydantic>=2.6.4",
]
readme = "README.md"
requires-python = ">= 3.8"
[project.scripts]
llm = "llm_cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"black~=23.3.0",
"ruff",
"pyright>=1.1.355",
]
[tool.rye.scripts]
format = { chain = [
"format:ruff",
"fix:ruff",
]}
"format:black" = "black ."
"format:ruff" = "ruff format"
"check:ruff" = "ruff ."
"fix:ruff" = "ruff --fix ."
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/llm_cli"]
[tool.black]
# https://github.com/psf/black
line-length = 120
exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)"
[tool.ruff]
line-length = 120
select = [
"E", "W", # see: https://pypi.org/project/pycodestyle
"F", # see: https://pypi.org/project/pyflakes
# "D", # see: https://pypi.org/project/pydocstyle
# "N", # see: https://pypi.org/project/pep8-naming
# "S", # see: https://pypi.org/project/flake8-bandit
]
ignore = [
"E722", # catch all in except
"F405", # star imports
"F403" # start imports
]