-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (114 loc) · 3.85 KB
/
pyproject.toml
File metadata and controls
128 lines (114 loc) · 3.85 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "credwolf"
version = "1.0.0"
description = "Credential validation tool for Active Directory Domain Services."
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.11,<3.15"
authors = [
{name = "StrongWind1"},
]
keywords = [
"active-directory",
"credential-validation",
"kerberos",
"ntlm",
"penetration-testing",
"red-team",
"security",
]
classifiers = [
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Security",
]
dependencies = [
"pyasn1>=0.5",
"impacket>=0.12",
]
[project.urls]
Repository = "https://github.com/StrongWind1/CredWolf"
Documentation = "https://strongwind1.github.io/CredWolf/"
Changelog = "https://github.com/StrongWind1/CredWolf/blob/main/CHANGELOG.md"
Issues = "https://github.com/StrongWind1/CredWolf/issues"
[project.scripts]
credwolf = "credwolf.cli:main"
cw = "credwolf.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["credwolf"]
[dependency-groups]
dev = [
"pytest>=8.0",
"ruff>=0.11",
"ty>=0.0.1a7",
"pre-commit>=4.0",
]
docs = [
"mkdocs-material>=9.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
line-length = 320
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # trailing comma — formatter conflict
"ISC001", # string concat — formatter conflict
"D203", # blank line before class docstring — incompatible with D211
"D213", # multi-line summary second line — incompatible with D212
"T20", # print statements — CLI tool
"G004", # f-string logging — custom logger, readability wins
"ANN401", # Any — impacket is untyped
"BLE001", # broad except — impacket exceptions undocumented
"TRY400", # logging.exception — not using stdlib logging
"S110", # try-except-pass — intentional silent catches on ASN.1 probing
"PLR0913", # too many args — protocol methods need them
"PLR0912", # too many branches — protocol state machines
"PLR0915", # too many statements — protocol methods
"PLR0911", # too many returns — protocol methods
"C901", # complexity — protocol methods
"S106", # hardcoded password in arg — false positives on secret_type labels
"SIM108", # ternary — readability loss on multi-arg calls
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"D", # docstrings — tests
"S101", # assert — pytest idiom
"S105", # hardcoded password — test data
"S106", # hardcoded password in arg — test data
"S603", # subprocess — test-only
"PLR2004", # magic values — test assertions
"PLC0415", # late imports — smoke tests
"ANN", # annotations — pytest fixtures / test helpers
"SLF001", # private access — testing internal methods
"N802", # uppercase in function name — test names match CLI flags
"EM101", # string literal in exception — test assertions
"TRY003", # long exception message — test assertions
]
"scripts/**" = [
"D", # docstrings — scripts
"S603", # subprocess — scripts call uv
"S607", # partial executable path — uv is in PATH
"INP001", # implicit namespace package — standalone scripts
"T201", # print — CLI feedback
"SLF001", # private access — argparse introspection
"PLC0415", # late import — deferred to avoid circular import at parse time
]
[tool.ty.rules]
all = "error"
[tool.ty.environment]
python-version = "3.11"
[[tool.ty.overrides]]
include = ["tests/**"]
[tool.ty.overrides.rules]
all = "ignore"