-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (99 loc) · 2.41 KB
/
Copy pathpyproject.toml
File metadata and controls
107 lines (99 loc) · 2.41 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=61", "wheel" ]
[project]
name = "owasp-aibom-generator"
version = "1.0.2"
description = "A comprehensive AI Bill of Materials (AIBOM) generation tool for Hugging Face models."
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [ { name = "OWASP GenAI Security Project", email = "genai-security@owasp.org" } ]
requires-python = ">=3.11"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security",
]
dependencies = [
"beautifulsoup4>=4.11",
"datasets>=2",
"fastapi>=0.104",
"flask>=2.3",
"gunicorn>=21.2",
"httpx>=0.25",
"huggingface-hub>=0.19",
"jinja2>=3",
"jsonschema>=4.17",
"license-expression>=30.4.4",
"packageurl-python>=0.11.1",
"pydantic>=2.4",
"python-multipart",
"pyyaml>=6.0.1",
"requests>=2.31",
"sentencepiece>=0.1.99",
"torch>=2",
"transformers>=4.36",
"uvicorn>=0.24",
]
optional-dependencies.dev = [
"gguf>=0.6",
"pre-commit>=3",
"pytest>=7",
"pytest-cov>=4",
"pytest-mock>=3.10",
]
scripts.aibom = "src.cli:main"
[dependency-groups]
dev = [
"gguf>=0.6",
]
[tool.setuptools]
packages.find.where = [ "." ]
packages.find.include = [ "src*" ]
packages.find.namespaces = false
[tool.ruff]
target-version = "py311"
line-length = 120
lint.select = [
"B", # flake8-bugbear
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"T10", # flake8-debugger
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.bandit]
exclude_dirs = [ "tests" ]
skips = [ "B101" ]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
install_types = true
non_interactive = true
check_untyped_defs = true
warn_unreachable = true
warn_unused_ignores = true
exclude = "tests/"
plugins = [ "pydantic.mypy" ]
[[tool.mypy.overrides]]
ignore_errors = true
module = [
"src.models.extractor",
"src.models.gguf_metadata",
"src.models.registry",
"src.models.service",
]
[tool.pytest]
ini_options.minversion = "6.0"
ini_options.addopts = "-ra -q --cov=src"
ini_options.testpaths = [
"tests",
]
ini_options.pythonpath = [ "." ]