-
-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathpyproject.toml
More file actions
204 lines (192 loc) · 6.3 KB
/
pyproject.toml
File metadata and controls
204 lines (192 loc) · 6.3 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "scancodeio"
version = "37.1.0"
description = "Automate software composition analysis pipelines"
readme = "README.rst"
requires-python = ">=3.12,<3.15"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE", "scan.NOTICE"]
authors = [
{ name = "nexB Inc.", email = "info@aboutcode.org" }
]
keywords = [
"open source", "scan", "license", "package", "dependency",
"copyright", "filetype", "author", "extract", "licensing",
"scancode", "scanpipe", "docker", "rootfs", "vm",
"virtual machine", "pipeline", "code analysis", "container"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Legal Industry",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Utilities"
]
dependencies = [
"importlib-metadata==8.7.1",
"setuptools==82.0.0",
# Django related
"Django==6.0.3",
"django-environ==0.13.0",
"django-crispy-forms==2.6",
"crispy-bootstrap3==2024.1",
"django-filter==25.2",
"djangorestframework==3.16.1",
"django-taggit==6.1.0",
"django-htmx==1.27.0",
# Database
"psycopg[binary]==3.3.3",
# wait_for_database Django management command
"django-probes==1.8.0",
# Task queue
"rq==2.7.0",
"django-rq==3.2.2",
"redis==7.3.0",
# WSGI server
"gunicorn==25.1.0",
# Docker
"container-inspector==33.1.0",
# ScanCode-toolkit
"scancode-toolkit[packages]==32.5.0",
"extractcode[full]==31.0.0",
"commoncode==32.4.2",
"Beautifulsoup4[chardet]==4.14.3",
"packageurl-python==0.17.6",
# FetchCode
"fetchcode==0.8.0",
"fetchcode-container==1.2.3.210512; sys_platform == 'linux'",
# Inspectors
"elf-inspector==0.0.3",
"go-inspector==0.5.0",
"rust-inspector==0.2.1",
"binary-inspector==0.2.0",
"python-inspector==0.15.0",
"source-inspector==0.7.1; sys_platform != 'darwin' and platform_machine != 'arm64'",
"aboutcode-toolkit==11.1.1",
# Utilities
"XlsxWriter==3.2.9",
"openpyxl==3.1.5",
"requests==2.33.1",
"GitPython==3.1.46",
# Profiling
"pyinstrument==5.1.2",
# CycloneDX
"cyclonedx-python-lib==11.6.0",
"jsonschema==4.26.0",
# MatchCode-toolkit
"matchcode-toolkit==7.2.2",
# Univers
"univers==31.1.0",
# Markdown
"markdown-it-py==4.0.0",
"bleach==6.3.0",
# Antivirus
"clamd==1.0.2",
# FederatedCode
"aboutcode.hashid==0.2.0",
# AboutCode pipeline
"aboutcode.pipeline==0.2.1",
"aboutcode.api-auth==0.2.0",
# ScoreCode
"scorecode==0.0.4",
]
[project.optional-dependencies]
dev = [
# Validation
"ruff==0.15.5",
"doc8==2.0.0",
# Debug
"django-debug-toolbar==6.2.0",
# Documentation
"Sphinx==8.1.3",
"sphinx-rtd-theme==3.0.2",
"sphinx-rtd-dark-mode==1.3.0",
"sphinxcontrib-django==2.5",
]
android_analysis = [
"android_inspector==0.2.0"
]
mining = [
"minecode_pipelines==0.1.1"
]
[project.urls]
Homepage = "https://github.com/aboutcode-org/scancode.io"
Documentation = "https://scancodeio.readthedocs.io/"
Repository = "https://github.com/aboutcode-org/scancode.io.git"
Issues = "https://github.com/aboutcode-org/scancode.io/issues"
Changelog = "https://github.com/aboutcode-org/scancode.io/blob/main/CHANGELOG.rst"
[project.scripts]
scanpipe = "scancodeio:command_line"
run = "scancodeio:combined_run"
[project.entry-points."scancodeio_pipelines"]
analyze_docker_image = "scanpipe.pipelines.analyze_docker:Docker"
analyze_root_filesystem_or_vm_image = "scanpipe.pipelines.analyze_root_filesystem:RootFS"
analyze_windows_docker_image = "scanpipe.pipelines.analyze_docker_windows:DockerWindows"
benchmark_purls = "scanpipe.pipelines.benchmark_purls:BenchmarkPurls"
collect_strings_gettext = "scanpipe.pipelines.collect_strings_gettext:CollectStringsGettext"
collect_symbols_ctags = "scanpipe.pipelines.collect_symbols_ctags:CollectSymbolsCtags"
collect_symbols_pygments = "scanpipe.pipelines.collect_symbols_pygments:CollectSymbolsPygments"
collect_symbols_tree_sitter = "scanpipe.pipelines.collect_symbols_tree_sitter:CollectSymbolsTreeSitter"
enrich_with_purldb = "scanpipe.pipelines.enrich_with_purldb:EnrichWithPurlDB"
fetch_scores = "scanpipe.pipelines.fetch_scores:FetchScores"
find_vulnerabilities = "scanpipe.pipelines.find_vulnerabilities:FindVulnerabilities"
inspect_elf_binaries = "scanpipe.pipelines.inspect_elf_binaries:InspectELFBinaries"
inspect_packages = "scanpipe.pipelines.inspect_packages:InspectPackages"
load_inventory = "scanpipe.pipelines.load_inventory:LoadInventory"
load_sbom = "scanpipe.pipelines.load_sbom:LoadSBOM"
map_deploy_to_develop = "scanpipe.pipelines.deploy_to_develop:DeployToDevelop"
match_to_matchcode = "scanpipe.pipelines.match_to_matchcode:MatchToMatchCode"
populate_purldb = "scanpipe.pipelines.populate_purldb:PopulatePurlDB"
publish_to_federatedcode = "scanpipe.pipelines.publish_to_federatedcode:PublishToFederatedCode"
resolve_dependencies = "scanpipe.pipelines.resolve_dependencies:ResolveDependencies"
scan_codebase = "scanpipe.pipelines.scan_codebase:ScanCodebase"
scan_for_virus = "scanpipe.pipelines.scan_for_virus:ScanForVirus"
scan_single_package = "scanpipe.pipelines.scan_single_package:ScanSinglePackage"
[tool.setuptools.packages.find]
where = ["."]
[tool.ruff]
line-length = 88
extend-exclude = ["migrations", "var"]
target-version = "py310"
[tool.ruff.lint]
# Rules: https://docs.astral.sh/ruff/rules/
select = [
"E", # pycodestyle
"W", # pycodestyle warnings
"D", # pydocstyle
"F", # Pyflakes
"UP", # pyupgrade
"DJ", # flake8-django
"S", # flake8-bandit
"I", # isort
"C9", # McCabe complexity
"FIX", # flake8-fix
"FURB", # refurb
]
ignore = ["D1", "D203", "D205", "D212", "D400", "D415"]
[tool.ruff.lint.isort]
force-single-line = true
sections = { django = ["django"] }
section-order = [
"future",
"standard-library",
"django",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
# Allow the usage of assert in the test_spdx file.
"**/test_spdx.py*" = ["S101"]
# Allow complexity in management commands
"scanpipe/management/commands/*" = ["C901"]