Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Auto Label
on:
pull_request:
types: [opened, reopened, synchronized]
permissions:
pull-requests: write
issues: write
jobs:
label:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
types: [opened, reopened, synchronize, edited]
permissions:
issues: write
pull-requests: write
jobs:
validate:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,5 +45,7 @@ jobs:
core.warning('Skipping PR comment for fork PR (read-only token)');
issues.forEach(issue => core.warning(issue));
}
core.setFailed('PR validation failed');
if (issues.some(i => i.startsWith('❌'))) {
core.setFailed('PR validation failed');
}
}
2 changes: 0 additions & 2 deletions src/youtube_extension/integrations/cloud_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
CloudAIError,
ConfigurationError,
Comment on lines 45 to 46
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For the same reason you're removing RateLimitError, CloudAIError and ConfigurationError also appear to be redundant here. They are already exported by src/youtube_extension/integrations/cloud_ai/__init__.py. To be consistent and further clean up redundancies, you could remove them from this import statement and the corresponding __all__ list as well.

QuotaExceededError,
RateLimitError,
ServiceUnavailableError,
)
from .cloud_ai.integrator import CloudAIIntegrator
Expand All @@ -62,7 +61,6 @@

# Exceptions
"CloudAIError",
"RateLimitError",
"ConfigurationError",
Comment on lines 63 to 64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Following the previous suggestion, CloudAIError and ConfigurationError should also be removed from __all__ to maintain consistency with the removal of redundant exports.

"ServiceUnavailableError",
"AuthenticationError",
Expand Down
Loading