-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (133 loc) · 4.18 KB
/
pyproject.toml
File metadata and controls
145 lines (133 loc) · 4.18 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
136
137
138
139
140
141
142
143
144
145
# SPDX-FileCopyrightText: AISEC Pentesting Team
#
# SPDX-License-Identifier: CC0-1.0
[build-system]
requires = ["uv_build>=0.9.11,<0.10.0"]
build-backend = "uv_build"
[project]
name = "gallia"
version = "2.0.2"
description = "Extendable Pentesting Framework"
readme = "README.md"
authors = [{name = "AISEC Pentesting Team"}]
maintainers = [
{ name = "Stefan Tatschner", email = "stefan.tatschner@aisec.fraunhofer.de" },
{ name = "Tobias Specht", email = "tobias.specht@aisec.fraunhofer.de" },
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Topic :: Security",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.11,<3.15"
dependencies = [
"aiosqlite >=0.18",
"argcomplete >=2,<4",
"boltons>=24.1.0",
"platformdirs >=2.6,<5.0",
"pydantic >=2.12,<3.0",
"tabulate >=0.9",
"zstandard >=0.19; python_version < '3.14'",
"more-itertools >=10.3.0,<11.0.0; sys_platform == 'win32' and python_version < '3.12'",
"wcwidth>=0.3.0",
]
[project.entry-points."gallia_plugins"]
"uds" = "gallia.plugins.uds:UDSPlugin"
"xcp" = "gallia.plugins.xcp:XCPPlugin"
[project.scripts]
"gallia" = "gallia.cli.gallia:main"
"netzteil" = "gallia.cli.netzteil:main"
"cursed-hr" = "gallia.cli.cursed_hr:main"
"hr" = "gallia.cli.hr:main"
# TODO: Change to dependency-groups once https://github.com/pypa/pip/issues/12963 is resolved
[project.optional-dependencies]
dev = [
"mypy >=1.0,<2.0",
"pylsp-mypy >=0.6,<0.8",
"pylsp-rope >=0.1,<0.2",
"pytest>=7.1,<10.0",
"pytest-asyncio>=0.20,<1.4",
"pytest-cov>=4,<8",
"python-lsp-server >=1.5,<2.0",
"reuse>=4.0,<7.0",
"ruff >=0.9.0",
"rust-just>=1.38.0",
"ty>=0.0.1a29",
"types-tabulate >=0.9,<0.10",
"types-boltons>=25.0.0.20250919",
]
[project.urls]
Documentation = "https://github.com/Fraunhofer-AISEC/gallia"
Repository = "https://github.com/Fraunhofer-AISEC/gallia"
"Bug Tracker" = "https://github.com/Fraunhofer-AISEC/gallia/issues"
[tool.mypy]
strict = true
plugins = [
"pydantic.mypy"
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.ruff]
target-version = "py311"
line-length = 100
exclude = ["docs/"]
[tool.ruff.lint]
select = [
# TODO: Enable this
# "B", # flake8-bugbear
"A", # flake8-builtins
"ASYNC",# flake8-async
"C4", # flake8-comprehensions
"E", # pycodestlye
"F", # pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB", # refurb
"I", # isort
"IC", # flake8-import-conventions
"LOG", # flake8-logging
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF100", # unused-noqa
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
ignore = [
"ASYNC109", # Async function definition with a timeout parameter
"E402", # Module level import not at top of file
"E501", # line length
"PLR2004", # magic value used in comparison
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0913", # too many arguments to function call
"PLR0915", # too many statements
"PLC1901", # empty string is falsey
"TD001", # Invalid TODO tag: {tag}
"TD002", # Missing author in TODO; try: # TODO(<author_name>): ... or # TODO @<author_name>: ...
"TD003", # Missing issue link on the line following this TODO
"UP040", # Type alias uses `TypeAlias` annotation instead of the `type` keyword
"A005", # Module `types` shadows a Python standard-library module
"PLC0415", # `import` should be at the top-level of a file
]
[tool.ty.environment]
python-version = "3.11"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"error::UserWarning",
"ignore::DeprecationWarning",
]