-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
122 lines (111 loc) · 3.34 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
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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "Surfactant"
authors = [
{name = "Ryan Mast", email = "[email protected]"},
{name = "Levi Lloyd", email = "[email protected]"},
{name = "Micaela Gallegos", email = "[email protected]"},
{name = "Alexander Armstrong", email = "[email protected]"},
{name = "Shayna Kapadia", email = "[email protected]"},
]
maintainers = [
{name = "Ryan Mast", email = "[email protected]"},
]
description = "Modular framework to gather file information, analyze dependencies, and generate an SBOM"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["sbom", "pe", "elf", "ole", "msi"]
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: Security",
"Topic :: Software Development",
"Topic :: System",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"dataclasses_json==0.6.*",
"pyelftools==0.31.*",
# This isn't semver so fix it to a specific release
"pefile==2024.8.26",
"dnfile==0.15.*",
"olefile==0.47.*",
"defusedxml==0.7.*",
"spdx-tools==0.8.*",
"cyclonedx-python-lib==7.6.2",
"pluggy==1.*",
"click==8.*",
"javatools>=1.6,==1.*",
"loguru==0.7.*",
"flask==3.*",
"tomlkit==0.13.*",
]
dynamic = ["version"]
[project.optional-dependencies]
macho = ["lief==0.15.1"]
test = ["pytest"]
dev = ["build", "pre-commit"]
docs = ["sphinx", "myst-parser"]
[project.scripts]
surfactant = "surfactant.__main__:main"
[project.urls]
Homepage = "https://github.com/LLNL/Surfactant"
Discussions = "https://github.com/LLNL/Surfactant/discussions"
Documentation = "https://surfactant.readthedocs.io/en/latest/"
"Issue Tracker" = "https://github.com/LLNL/Surfactant/issues"
"Source Code" = "https://github.com/LLNL/Surfactant"
[tool.setuptools.packages.find]
include = ["surfactant", "surfactant.*"]
[tool.setuptools_scm]
version_file = "surfactant/_version.py"
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
pythonpath = "."
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.lint]
# ruff defaults: E4, E7, E9, F
select = ["E", "F", "B", "I"]
ignore = ["E501", "F841"]
# don't fix flake8-bugbear (`B`) violations
unfixable = ["B"]
# Ignore `E402` import violations in plugin manager
[tool.ruff.lint.per-file-ignores]
"surfactant/plugin/manager.py" = ["E402"]
[tool.pylint.messages_control]
max-line-length = "100"
good-names-rgxs = "x,y,e,md,sw"
disable = [
"line-too-long",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"duplicate-code",
"too-many-branches",
"too-many-statements",
"unused-variable",
"invalid-name",
"no-member",
"too-many-nested-blocks",
"fixme",
"too-many-locals",
"too-many-arguments",
"unused-argument",
"unspecified-encoding",
"import-error",
]