Skip to content

Commit ecb5c87

Browse files
committed
build: updated project to include semgrep as an experimental dependency
1 parent 66115aa commit ecb5c87

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022 - 2024, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
# Use bash as the shell when executing a rule's recipe. For more details:
@@ -200,7 +200,7 @@ upgrade: .venv/upgraded-on
200200
.venv/upgraded-on: pyproject.toml
201201
python -m pip install --upgrade pip
202202
python -m pip install --upgrade wheel
203-
python -m pip install --upgrade --upgrade-strategy eager --editable .[actions,dev,docs,hooks,test,test-docker]
203+
python -m pip install --upgrade --upgrade-strategy eager --editable .[actions,dev,docs,hooks,test,test-docker,experimental]
204204
$(MAKE) upgrade-quiet
205205
force-upgrade:
206206
rm -f .venv/upgraded-on

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022 - 2024, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
# https://flit.pypa.io/en/latest/pyproject_toml.html
@@ -105,6 +105,10 @@ test-docker = [
105105
"ruamel.yaml >=0.18.6,<1.0.0",
106106
]
107107

108+
experimental = [
109+
"semgrep == 1.102.0",
110+
]
111+
108112
[project.urls]
109113
Homepage = "https://github.com/oracle/macaron"
110114
Changelog = "https://github.com/oracle/macaron/blob/main/CHANGELOG.md"

src/macaron/config/defaults.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,5 +596,5 @@ epoch_threshold = 3
596596
day_publish_error = 4
597597

598598
# yaml configuration file containing suspicious patterns. Can be full path or relative to
599-
# folder where macaron is installed
599+
# folder where macaron is installed. This will be normalised to the OS path type.
600600
suspicious_patterns_file = src/macaron/malware_analyzer/pypi_heuristics/sourcecode/suspicious_patterns.yaml

0 commit comments

Comments
 (0)