-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (132 loc) · 3.6 KB
/
Copy pathpyproject.toml
File metadata and controls
150 lines (132 loc) · 3.6 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
146
147
148
149
150
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pkg-defender"
version = "1.0.6"
description = "Stop supply chain attacks before they reach your machine or CI pipeline"
requires-python = ">=3.11"
license = "Apache-2.0"
license-files = ["LICENSE"]
dependencies = [
"aiohttp>=3.14.1,<4.0",
"click>=8.4,<9.0",
"defusedxml>=0.7,<1.0",
"feedparser>=6.0,<7.0",
"idna>=3.15",
"packaging>=23.0,<24.0",
"platformdirs>=4.0,<5.0",
"pyyaml>=6.0,<7.0",
"rich>=13.0,<14.0",
"tomlkit>=0.15.0",
"zstandard>=0.22,<1.0",
]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = [
"supply-chain-attack",
"security",
"npm",
"pypi",
"cargo",
"threat-intelligence",
]
[[project.authors]]
name = "divisionseven"
[[project.maintainers]]
name = "divisionseven"
[project.optional-dependencies]
test = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
"pytest-timeout>=2.3.0",
"aioresponses>=0.7.9",
"coverage[toml]>=7.0",
"hypothesis>=6.0",
]
lint = ["ruff>=0.4", "mypy>=1.9", "pre-commit>=4.0", "types-defusedxml>=0.7", "types-python-dateutil>=2.9"]
fuzz = [
"atheris>=2.3.0",
]
[project.urls]
Homepage = "https://github.com/divisionseven/pkg-defender"
Repository = "https://github.com/divisionseven/pkg-defender"
Funding = "https://buymeacoffee.com/divisionseven"
Documentation = "https://github.com/divisionseven/pkg-defender/blob/main/docs/index.md"
"Bug Tracker" = "https://github.com/divisionseven/pkg-defender/issues"
Changelog = "https://github.com/divisionseven/pkg-defender/blob/main/CHANGELOG.md"
[project.scripts]
pkgd = "pkg_defender.cli.main:run_cli"
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = ["--strict-markers", "--strict-config", "-ra", "--timeout=300"]
timeout = 300
markers = [
"slow: tests that take more than 2 seconds",
"network: marks tests that require network access",
"smoke: marks smoke tests for quick verification",
"unit: unit tests",
"integration: integration tests",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pkg_defender"]
include = ["docs/assets/brand/banners/**"]
[tool.hatch.build.targets.wheel.force-include]
"docs/man/pkgd.1" = "share/man/man1/pkgd.1"
[tool.coverage.run]
source = ["src/pkg_defender"]
branch = true
omit = ["tests/*"]
[tool.coverage.report]
show_missing = true
fail_under = 90
[tool.ruff]
target-version = "py311"
line-length = 120
src = ["src"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
exclude = [".github/", "scripts", "internal_documentation/"]
[[tool.mypy.overrides]]
module = [
"feedparser",
"yaml",
]
ignore_missing_imports = true
[dependency-groups]
dev = [
# Test
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
"pytest-timeout>=2.3.0",
"aioresponses>=0.7.9",
"coverage[toml]>=7.0",
"hypothesis>=6.0",
# Lint
"ruff>=0.4",
"mypy>=1.9",
"pre-commit>=4.0",
"types-defusedxml>=0.7",
"types-python-dateutil>=2.9",
]