-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (120 loc) · 3.28 KB
/
pyproject.toml
File metadata and controls
135 lines (120 loc) · 3.28 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = ["hatchling>=1.27.0"]
build-backend = "hatchling.build"
[project]
name = "xpctl"
dynamic = ["version"]
description = "Windows XP remote management toolkit with SSH and agent transports."
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
authors = [
{ name = "Nick Ficano", email = "nficano@gmail.com" },
]
keywords = ["windows-xp", "ssh", "debugging", "reverse-engineering", "automation"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Debuggers",
"Topic :: System :: Systems Administration",
"Typing :: Typed",
]
dependencies = [
"click>=8.1,<9",
"jinja2>=3.1,<4",
"paramiko>=3.4,<4",
"rich>=13.7,<14",
]
[project.optional-dependencies]
dev = [
"build>=1.2",
"pre-commit>=4.0",
"pydoclint>=0.5",
"pyright>=1.1",
"pytest>=8.3",
"ruff>=0.9.0,<1.0",
"twine>=6.1",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.6",
]
[project.scripts]
xpctl = "xpctl.cli:main"
[project.urls]
Documentation = "https://nficano.github.io/xpctl/"
Issues = "https://github.com/nficano/xpctl/issues"
Repository = "https://github.com/nficano/xpctl"
Changelog = "https://github.com/nficano/xpctl/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/xpctl/__about__.py"
[tool.hatch.build]
exclude = [
".venv/",
".venv-*/",
"artifacts/",
"build/",
"dist/",
"site/",
]
[tool.hatch.build.targets.wheel]
packages = ["src/xpctl"]
[tool.hatch.build.targets.wheel.force-include]
"installs/python-3.4.10.zip" = "xpctl/assets/installers/python-3.4.10.zip"
"installs/setup-x86-2.874.exe" = "xpctl/assets/installers/setup-x86-2.874.exe"
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
pythonpath = ["src"]
[tool.ruff]
target-version = "py311"
line-length = 88
src = ["src", "tests", "scripts"]
extend-exclude = [
"src/xpctl/assets/agent.py",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"B", # flake8-bugbear
"UP", # pyupgrade
"RUF", # ruff-specific rules
"D", # pydocstyle
]
ignore = [
"B008", # do not perform function calls in argument defaults (Click uses this)
"E501", # line too long (handled by formatter)
"D100", # missing docstring in public module (too noisy for CLI modules)
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D107", # missing docstring in __init__ (covered by class docstring)
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"]
"scripts/**" = ["D"]
"src/xpctl/assets/**" = ["D", "RUF012"]
"src/xpctl/cli/*.py" = ["D101", "D103"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
[tool.pyright]
pythonVersion = "3.12"
pythonPlatform = "All"
typeCheckingMode = "standard"
reportMissingImports = "none"
reportMissingModuleSource = "none"
include = ["src"]
exclude = ["src/xpctl/assets/agent.py"]