Skip to content
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 6 commits into from Jul 1, 2023
Merged

Ruff: Stricter code quality rules #315

merged 6 commits into from Jul 1, 2023

Conversation

tony
Copy link
Member

@tony tony commented Jul 1, 2023

tony added 2 commits July 1, 2023 12:38
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
Copy link

codecov bot commented Jul 1, 2023

Codecov Report

Merging #315 (39a353d) into master (ca78dc0) will increase coverage by 0.43%.
The diff coverage is 70.58%.

@@            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              
Impacted Files Coverage Δ
src/unihan_db/importer.py 2.14% <ø> (ø)
src/unihan_db/tables.py 100.00% <ø> (ø)
src/unihan_db/bootstrap.py 38.54% <40.00%> (+1.54%) ⬆️
tests/conftest.py 98.27% <75.00%> (-0.03%) ⬇️
src/unihan_db/__init__.py 80.00% <80.00%> (ø)
tests/test_bootstrap.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tony tony merged commit 0bd8caf into master Jul 1, 2023
9 checks passed
@tony tony deleted the ruff-rules branch July 1, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant