-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add a GitHub Action #2
Merged
Merged
+52
−0
Conversation
This file contains 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
not-my-profile
added a commit
to not-my-profile/ruff
that referenced
this pull request
Jan 19, 2023
…n ruff This commit series removes the following associated function from the Violation trait: fn placeholder() -> Self; ruff previously used this placeholder approach for the messages it listed in the README and displayed when invoked with --explain <code>. This approach is suboptimal for three reasons: 1. The placeholder implementations are completely boring code since they just initialize the struct with some dummy values. 2. Displaying concrete error messages with arbitrary interpolated values can be confusing for the user since they might not recognize that the values are interpolated. 3. Some violations have varying format strings depending on the violation which could not be documented with the previous approach (while we could have changed the signature to return Vec<Self> this would still very much suffer from astral-sh#2 and astral-sh#3). We therefore drop Violation::placeholder in favor of a new macro-based approach, explaind in commit 4/5. Violation::placeholder is only invoked via Rule::kind, so we firstly have to get rid of all Rule::kind invocations ... this commit starts removing the trivial cases.
not-my-profile
added a commit
to not-my-profile/ruff
that referenced
this pull request
Jan 19, 2023
…n ruff This commit series removes the following associated function from the Violation trait: fn placeholder() -> Self; ruff previously used this placeholder approach for the messages it listed in the README and displayed when invoked with --explain <code>. This approach is suboptimal for three reasons: 1. The placeholder implementations are completely boring code since they just initialize the struct with some dummy values. 2. Displaying concrete error messages with arbitrary interpolated values can be confusing for the user since they might not recognize that the values are interpolated. 3. Some violations have varying format strings depending on the violation which could not be documented with the previous approach (while we could have changed the signature to return Vec<Self> this would still very much suffer from astral-sh#2 and astral-sh#3). We therefore drop Violation::placeholder in favor of a new macro-based approach, explaind in commit 4/5. Violation::placeholder is only invoked via Rule::kind, so we firstly have to get rid of all Rule::kind invocations ... this commit starts removing the trivial cases.
not-my-profile
added a commit
to not-my-profile/ruff
that referenced
this pull request
Jan 19, 2023
This commit series removes the following associated function from the Violation trait: fn placeholder() -> Self; ruff previously used this placeholder approach for the messages it listed in the README and displayed when invoked with --explain <code>. This approach is suboptimal for three reasons: 1. The placeholder implementations are completely boring code since they just initialize the struct with some dummy values. 2. Displaying concrete error messages with arbitrary interpolated values can be confusing for the user since they might not recognize that the values are interpolated. 3. Some violations have varying format strings depending on the violation which could not be documented with the previous approach (while we could have changed the signature to return Vec<Self> this would still very much suffer from astral-sh#2 and astral-sh#3). We therefore drop Violation::placeholder in favor of a new macro-based approach, explaind in commit 4/5. Violation::placeholder is only invoked via Rule::kind, so we firstly have to get rid of all Rule::kind invocations ... this commit starts removing the trivial cases.
charliermarsh
pushed a commit
that referenced
this pull request
Feb 14, 2023
…ize` (#2) Remove the `rome_rowan` dependency from `ruff_fmt` and use `rome_text_size` directly. This is just an aesthetic cleanup that does not improve compile time because `ruff_fmt` depends on `rome_formatter` which depends on `rome_rowan`.
charliermarsh
pushed a commit
that referenced
this pull request
Feb 14, 2023
…ize` (#2) Remove the `rome_rowan` dependency from `ruff_fmt` and use `rome_text_size` directly. This is just an aesthetic cleanup that does not improve compile time because `ruff_fmt` depends on `rome_formatter` which depends on `rome_rowan`.
charliermarsh
pushed a commit
that referenced
this pull request
Feb 14, 2023
…ize` (#2) Remove the `rome_rowan` dependency from `ruff_fmt` and use `rome_text_size` directly. This is just an aesthetic cleanup that does not improve compile time because `ruff_fmt` depends on `rome_formatter` which depends on `rome_rowan`.
charliermarsh
pushed a commit
that referenced
this pull request
Feb 14, 2023
…ize` (#2) Remove the `rome_rowan` dependency from `ruff_fmt` and use `rome_text_size` directly. This is just an aesthetic cleanup that does not improve compile time because `ruff_fmt` depends on `rome_formatter` which depends on `rome_rowan`.
charliermarsh
pushed a commit
that referenced
this pull request
Feb 14, 2023
…ize` (#2) Remove the `rome_rowan` dependency from `ruff_fmt` and use `rome_text_size` directly. This is just an aesthetic cleanup that does not improve compile time because `ruff_fmt` depends on `rome_formatter` which depends on `rome_rowan`.
charliermarsh
pushed a commit
that referenced
this pull request
Feb 15, 2023
…ize` (#2) Remove the `rome_rowan` dependency from `ruff_fmt` and use `rome_text_size` directly. This is just an aesthetic cleanup that does not improve compile time because `ruff_fmt` depends on `rome_formatter` which depends on `rome_rowan`.
charliermarsh
pushed a commit
that referenced
this pull request
Feb 15, 2023
…ize` (#2) Remove the `rome_rowan` dependency from `ruff_fmt` and use `rome_text_size` directly. This is just an aesthetic cleanup that does not improve compile time because `ruff_fmt` depends on `rome_formatter` which depends on `rome_rowan`.
MichaReiser
added a commit
that referenced
this pull request
Jul 27, 2023
Closed
zanieb
added a commit
that referenced
this pull request
Feb 1, 2024
# This is the 1st commit message: Add tests for redirected rules # The commit message #2 will be skipped: # Add test rules for redirection
zanieb
added a commit
that referenced
this pull request
Feb 1, 2024
# This is the 1st commit message: Add tests for redirected rules # The commit message #2 will be skipped: # Add test rules for redirection
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.