Skip to content

Commit

Permalink
Merge pull request #187 from codecov/scott/ai-pr-review
Browse files Browse the repository at this point in the history
feat: Add experimental AI PR review
  • Loading branch information
scott-codecov authored Nov 22, 2023
2 parents 64da979 + 3de8687 commit e187e61
Show file tree
Hide file tree
Showing 12 changed files with 2,104 additions and 6 deletions.
6 changes: 4 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ def mock_configuration(mocker):
def codecov_vcr(request):
current_path = Path(request.node.fspath)
current_path_name = current_path.name.replace(".py", "")
cls_name = request.node.cls.__name__
cassete_path = current_path.parent / "cassetes" / current_path_name / cls_name
cassete_path = current_path.parent / "cassetes" / current_path_name
if request.node.cls:
cls_name = request.node.cls.__name__
cassete_path = cassete_path / cls_name
current_name = request.node.name
casset_file_path = str(cassete_path / f"{current_name}.yaml")
with vcr.use_cassette(
Expand Down
5 changes: 3 additions & 2 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/codecov/shared/archive/729a9321bfa96dd768dbf4bdcaab07e8fd8d82cd.tar.gz#egg=shared
https://github.com/codecov/shared/archive/70039b5b9e5cc1466041da351a07ebf9546fe89a.tar.gz#egg=shared
https://github.com/codecov/opentelem-python/archive/refs/tags/v0.0.4a1.tar.gz#egg=codecovopentelem
boto3
celery
Expand Down Expand Up @@ -37,4 +37,5 @@ urllib3>=1.26.18
vcrpy
opentelemetry-instrumentation-celery>=0.41b0
opentelemetry-sdk>=1.20.0
google-cloud-pubsub
google-cloud-pubsub
openai
22 changes: 20 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ analytics-python==1.3.0b1
# via
# -r requirements.in
# shared
annotated-types==0.6.0
# via pydantic
anyio==3.6.1
# via httpcore
# via
# httpcore
# openai
async-timeout==4.0.2
# via redis
attrs==20.3.0
Expand Down Expand Up @@ -80,6 +84,8 @@ deprecated==1.2.12
# via opentelemetry-api
distlib==0.3.7
# via virtualenv
distro==1.8.0
# via openai
ecdsa==0.16.1
# via tlslite-ng
exceptiongroup==1.1.3
Expand Down Expand Up @@ -144,6 +150,7 @@ httplib2==0.19.0
httpx==0.23.1
# via
# -r requirements.in
# openai
# respx
# shared
identify==2.5.30
Expand Down Expand Up @@ -186,6 +193,8 @@ oauth2==1.9.0.post1
# via shared
oauthlib==3.1.0
# via shared
openai==1.2.4
# via -r requirements.in
opentelemetry-api==1.20.0
# via
# opentelemetry-instrumentation
Expand Down Expand Up @@ -236,6 +245,10 @@ pyasn1-modules==0.2.8
# via google-auth
pycparser==2.20
# via cffi
pydantic==2.5.0
# via openai
pydantic-core==2.14.1
# via pydantic
pyjwt==2.4.0
# via
# -r requirements.in
Expand Down Expand Up @@ -305,7 +318,7 @@ s3transfer==0.3.4
# via boto3
sentry-sdk==1.19.1
# via -r requirements.in
shared @ https://github.com/codecov/shared/archive/729a9321bfa96dd768dbf4bdcaab07e8fd8d82cd.tar.gz
shared @ https://github.com/codecov/shared/archive/70039b5b9e5cc1466041da351a07ebf9546fe89a.tar.gz
# via -r requirements.in
six==1.15.0
# via
Expand Down Expand Up @@ -344,11 +357,16 @@ tlslite-ng==0.8.0a39
# via shared
tomli==2.0.1
# via pytest
tqdm==4.66.1
# via openai
typing==3.7.4.3
# via shared
typing-extensions==4.6.3
# via
# openai
# opentelemetry-sdk
# pydantic
# pydantic-core
# shared
urllib3==1.26.18
# via
Expand Down
Loading

0 comments on commit e187e61

Please sign in to comment.