Skip to content

Commit 495ae86

Browse files
authored
make semgrep and optional and test dependency (#1043)
* make semgrep and optional and test dependency * update readme
1 parent d4e7d5d commit 495ae86

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ The `codemodder` package is available [on PyPI](https://pypi.org/project/codemod
2424
$ pip install codemodder
2525
```
2626

27+
> **WARNING:** You should also install the semgrep optional dependency for now as it isn't deprecated yet:
28+
```
29+
$ pip install codemodder[semgrep]
30+
```
31+
2732
To install the package from source, use `pip`:
2833

2934
```

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ dependencies = [
2121
"pylint>=3.3,<3.4",
2222
"python-json-logger~=3.3.0",
2323
"PyYAML~=6.0.0",
24-
"semgrep>=1.119,<1.120",
2524
"toml~=0.10.2",
2625
"tomlkit~=0.13.0",
2726
"wrapt~=1.17.0",
@@ -52,6 +51,9 @@ generate-docs = 'codemodder.scripts.generate_docs:main'
5251
get-hashes = 'codemodder.scripts.get_hashes:main'
5352

5453
[project.optional-dependencies]
54+
semgrep = [
55+
"semgrep>=1.119,<1.120",
56+
]
5557
test = [
5658
"azure-ai-inference>=1.0.0b1,<2.0",
5759
"coverage>=7.8,<7.9",
@@ -84,6 +86,7 @@ test = [
8486
"fickling~=0.1.0,>=0.1.3",
8587
"graphql-server~=3.0.0b7",
8688
"unidiff>=0.7.5",
89+
"semgrep>=1.119,<1.120",
8790
]
8891
complexity = [
8992
"radon==6.0.*",

0 commit comments

Comments
 (0)