Skip to content

Commit 7ffbbae

Browse files
clavedelunadrdavella
authored andcommitted
make semgrep and optional and test dependency (#1043)
* make semgrep and optional and test dependency * update readme
1 parent 87c75a5 commit 7ffbbae

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ dependencies = [
2020
"pylint>=3.3,<3.4",
2121
"python-json-logger~=3.3.0",
2222
"PyYAML~=6.0.0",
23-
"semgrep>=1.118,<1.119",
2423
"toml~=0.10.2",
2524
"tomlkit~=0.13.0",
2625
"wrapt~=1.17.0",
@@ -50,6 +49,9 @@ generate-docs = 'codemodder.scripts.generate_docs:main'
5049
get-hashes = 'codemodder.scripts.get_hashes:main'
5150

5251
[project.optional-dependencies]
52+
semgrep = [
53+
"semgrep>=1.119,<1.120",
54+
]
5355
test = [
5456
"azure-ai-inference>=1.0.0b1,<2.0",
5557
"coverage>=7.8,<7.9",
@@ -81,6 +83,8 @@ test = [
8183
"flask_wtf~=1.2.0",
8284
"fickling~=0.1.0,>=0.1.3",
8385
"graphql-server~=3.0.0b7",
86+
"unidiff>=0.7.5",
87+
"semgrep>=1.119,<1.120",
8488
]
8589
complexity = [
8690
"radon==6.0.*",

0 commit comments

Comments
 (0)