Skip to content

Commit adc9718

Browse files
fix: remove unused import, add yaml type stubs, lowercase ghcr image name
1 parent ff34681 commit adc9718

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@ jobs:
2424

2525
- name: Extract version
2626
id: version
27-
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
27+
run: |
28+
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
29+
echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
2830
2931
- name: Build and push Docker image
3032
uses: docker/build-push-action@v5
3133
with:
3234
push: true
3335
tags: |
34-
ghcr.io/${{ github.repository }}:${{ steps.version.outputs.VERSION }}
35-
ghcr.io/${{ github.repository }}:latest
36+
ghcr.io/${{ steps.version.outputs.REPO }}:${{ steps.version.outputs.VERSION }}
37+
ghcr.io/${{ steps.version.outputs.REPO }}:latest
3638
3739
- name: Create GitHub Release
3840
uses: softprops/action-gh-release@v2

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dev = [
2828
"pytest-mock>=3.14.0",
2929
"ruff>=0.7.0",
3030
"mypy>=1.12.0",
31+
"types-PyYAML>=6.0",
3132
]
3233

3334
[tool.hatch.build.targets.wheel]

src/ai_reviewer/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from pathlib import Path
33

44
import yaml
5-
from pydantic import Field
65
from pydantic_settings import BaseSettings, SettingsConfigDict
76

87

0 commit comments

Comments
 (0)