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
Ruff: Stricter code quality rules #315
Merged
Merged
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
src/unihan_db/tables.py:94:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:99:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:105:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:111:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:117:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:123:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:129:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:135:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:141:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:147:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:189:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:205:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:213:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:219:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:225:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:231:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:237:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:254:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:261:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:269:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:284:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:289:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:296:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:356:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:363:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:370:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:402:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:411:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:418:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` src/unihan_db/tables.py:425:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
Codecov Report
@@ Coverage Diff @@
## master #315 +/- ##
==========================================
+ Coverage 67.57% 68.01% +0.43%
==========================================
Files 7 7
Lines 623 619 -4
Branches 79 78 -1
==========================================
Hits 421 421
+ Misses 197 193 -4
Partials 5 5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Docs:
See also: cihai/cihai#353, cihai/unihan-etl#290, cihai/cihai-cli#295