-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
86 lines (75 loc) · 2.32 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
[project]
name = "command-line-assistant"
version = "0.1.0"
description = "A simple wrapper to interact with RAG"
authors = [
{ name = "RHEL Lightspeed Team", email = "[email protected]" },
]
maintainers = [
{ name = "Rodolfo Olivieri", email = "[email protected]" },
{ name = "Major Hayden", email = "[email protected]" },
]
dependencies = [
# tomli is only required below 3.11 as it is native after that version.
'tomli; python_version<"3.11"',
"requests",
"dasbus",
"PyGObject",
]
requires-python = ">=3.9" # RHEL 9 and 10
readme = "README.md"
license = { file = "LICENSE" }
classifiers = ["Programming Language :: Python :: 3"]
urls = { Repository = "https://github.com/rhel-lightspeed/command-line-assistant.git", Issues = "https://github.com/rhel-lightspeed/command-line-assistant/issues" }
scripts = { c = "command_line_assistant.initialize:initialize", clad = "command_line_assistant.daemon.clad:daemonize" }
[build-system]
# pdm build is not available in rhel baseos repositories
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
"pytest==8.3.4",
"pytest-cov==6.0.0",
"pytest-randomly==3.16.0",
"coverage==7.6.10",
"pytest-sugar==1.0.0",
"pytest-clarity==1.0.1",
"tox>=4.23.2",
"tox-pdm>=0.7.2",
"responses>=0.25.3",
"sphinx>=7.4.7",
"sphinx-autodoc-typehints>=2.3.0",
"sphinx-rtd-theme>=3.0.2",
"sphinx-argparse-cli>=1.17.0",
]
# ----- Tooling specifics
[tool.setuptools.packages.find]
include = ["command_line_assistant*"]
namespaces = false
[tool.ruff]
# Enable ruff rules to act like flake8
# https://docs.astral.sh/ruff/rules/#rules
lint.select = [
"E", # pycodestyle (formerly part of flake8)
"F", # pyflakes (formerly part of flake8)
"I", # import order (like isort)
"B", # flake8-bugbear
"C90", # flake8-comprehensions
"G", # flak8-logging-format
]
# Exclude specific rules if needed
lint.ignore = [
"E501", # Ignore line length (similar to flake8's max-line-length)
]
[tool.pdm]
distribution = true
[tool.pdm.scripts]
unit-test = "make unit-test"
unit-test-coverage = "make unit-test-coverage"
[tool.pytest.init_options]
testpaths = ["tests"]
[tool.coverage.report]
skip_empty = true
[tool.coverage.run]
branch = true
source = ["command_line_assistant"]