-
Notifications
You must be signed in to change notification settings - Fork 80
build: update ty to v0.0.16 and align type-checking config #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rensortino
wants to merge
12
commits into
PrunaAI:main
Choose a base branch
from
rensortino:build/update-ty
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
642a6a4
fix: update ty pre-commit entry to skip `tests/` folder
rensortino e05bae8
build: update ty to version 0.0.16
rensortino f521b21
build: ignore possibly-missing-attribute and unused-type-ignore-comment
rensortino 88ae72a
fix: adapt signature of get_model_dependent_hyperparameter_defaults t…
rensortino 22731e8
build: add type ignore rules
rensortino 932cb22
fix: update supported hyperparameter names retrieval in SmashConfig
rensortino df74955
Merge branch 'main' into build/update-ty
rensortino b43041c
ci: enforce pr title format via a github actions workflow (#538)
SaboniAmine c00e487
build(ty): bump ty 0.0.16 to 0.0.17
rensortino d3a842f
build: add ty ignore comment to bypass invalid-method-override error
rensortino 503e020
fix: revert changes applied to get_model_dependent_hyperparameter_def…
rensortino 6b1eb98
build: bump ty to version 0.0.18
rensortino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: PR Title Convention | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, edited, synchronize, reopened] | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| check-title: | ||
| name: Validate PR title | ||
| runs-on: ubuntu-22.04 | ||
| timeout-minutes: 1 | ||
| steps: | ||
| - name: Check conventional commit format | ||
| env: | ||
| PR_TITLE: ${{ github.event.pull_request.title }} | ||
| run: | | ||
| # Allowed conventional commit types | ||
| TYPES="feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert" | ||
|
|
||
| # Pattern: type(optional-scope): description | ||
| # OR: type!: description (breaking change) | ||
| PATTERN="^($TYPES)(\(.+\))?\!?: .+" | ||
|
|
||
| if echo "$PR_TITLE" | grep -qP "$PATTERN"; then | ||
| echo "PR title is valid: $PR_TITLE" | ||
| else | ||
| echo "::error::PR title does not follow Conventional Commits." | ||
| echo "" | ||
| echo "Got: $PR_TITLE" | ||
| echo "" | ||
| echo "Expected: <type>[optional scope]: <description>" | ||
| echo "" | ||
| echo "Allowed types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert" | ||
| echo "Read more: https://www.conventionalcommits.org/en/v1.0.0/" | ||
| echo "" | ||
| echo "Examples:" | ||
| echo " feat: add new optimization algorithm" | ||
| echo " fix: resolve memory leak in model loading" | ||
| echo " ci(pruna): pin transformers version" | ||
| echo "" | ||
| exit 1 | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fully agree that we should ignore the comments for now, and I'll go through the code in a future PR to remove those ignore statements one by one because this frankly isn't checking anything...