-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (95 loc) · 2.62 KB
/
pyproject.toml
File metadata and controls
107 lines (95 loc) · 2.62 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
[project]
name = "snyk-agent-scan"
version = "0.4.16"
description = "Agent supply chain security scanner."
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"rich==14.2.0",
"pyjson5>=1.6.8",
"pydantic>=2.11.2",
"lark>=1.1.9",
"psutil>=5.9.0",
"fastapi>=0.115.12",
"pyyaml>=6.0.2",
"aiohttp>=3.13.4",
"rapidfuzz>=3.13.0",
"filelock>=3.18.0",
"truststore>=0.10.4",
"pydantic-core>=2.41.4",
"mcp[cli]==1.25.0",
"regex>=2026.2.19",
"pyjwt>=2.12.0",
]
[project.scripts]
snyk-agent-scan = "agent_scan.run:run"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/agent_scan"]
[project.optional-dependencies]
test = [
"pytest>=7.4.0",
"pytest-lazy-fixtures>=1.1.2",
"pytest-asyncio>=0.26.0"
]
dev = [
"shiv>=1.0.4",
"ruff>=0.11.8",
"pyinstaller>=6.15.0"
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
[tool.ruff]
# Assuming Python 3.10 as the target
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"W", # pycodestyle warnings
"RUF", # Ruff-specific rules
]
ignore = [
"E203", # Whitespace before ':' (conflicts with Black)
# Docstring rules corresponding to D100-D107
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"SIM117", # nested with
"B008", # Allow Depends(...) in default arguments
"E501" # line too long
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["D", "S"] # Ignore docstring and security issues in tests
[tool.ruff.lint.isort]
known-first-party = ["agent_scan"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
ignore_missing_imports = true