-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (97 loc) · 2.87 KB
/
pyproject.toml
File metadata and controls
110 lines (97 loc) · 2.87 KB
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
[project]
name = "ida-hcli"
version = "0.17.3"
description = "HCLI - Hex-Rays CLI Utility"
requires-python = ">=3.10"
license = "MIT"
readme = "README.md"
keywords = ["ida", "ida-pro", "reverse-engineering", "disassembler", "binary-analysis", "malware-analysis", "security"]
authors = [
{ name = "Hex-Rays SA", email = "support@hex-rays.com" }
]
dependencies = [
"click",
"rich",
"rich-click",
"httpx",
"pydantic>=2.11.0",
"platformdirs",
"packaging",
"questionary",
"semantic-version>=2.10.0",
"idapro>=0.0.5",
"pip>=25.2",
"tomli>=1.2.0; python_version<'3.11'",
"tenacity>=8.0.0",
]
[project.urls]
Homepage = "https://hex-rays.com/"
Repository = "https://github.com/HexRaysSA/ida-hcli"
Issues = "https://github.com/HexRaysSA/ida-hcli/issues"
[project.scripts]
hcli = "hcli.main:cli"
ida-hcli = "hcli.main:cli"
[tool.taskipy.tasks]
current-version = "semantic-release version --print-last-released"
dev-start = "semantic-release version --as-prerelease --patch --prerelease-token dev --no-changelog"
dev-patch = "semantic-release version --prerelease --prerelease-token dev --no-changelog"
release-major = "semantic-release version --major --no-changelog"
release-minor = "semantic-release version --minor --no-changelog"
release-patch = "semantic-release version --patch --no-changelog"
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
"types-pexpect>=4.9.0.20250809",
]
[project.optional-dependencies]
dev = [
"taskipy>=1.14.1",
"python-semantic-release>=10.3.1",
]
test = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.10.0",
"pytest-httpx>=0.21.0",
"pexpect>=4.9.0",
]
docs = [
"mkdocs-material",
"mkdocs-click>=0.9.0",
"mkdocstrings[python]>=0.20.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-include-markdown-plugin>=7.1.5",
"mkdocs-literate-nav>=0.6.2",
"pymdown-extensions>=10.15"
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 120
target-version = "py310"
fix = true
[tool.ruff.lint]
preview = true
extend-select = ["PLW1514"]
ignore = [
"BLE001", # blind-except — intentional broad catches at CLI command boundaries
"TRY300", # try-consider-else — stylistic preference, not a bug
"S110", # try-except-pass — intentional best-effort patterns in CLI
"LOG015", # root-logger-call — acceptable in CLI application context
]
[tool.mypy]
check_untyped_defs = true
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"] # or wherever your version is
version_variables = ["src/hcli/__init__.py:__version__"] # update your actual path
build_command = """
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
uv run hcli
uv build
"""
dist_path = "dist/"
major_on_zero = false # Stay in 0.x.x range
allow_zero_version = true