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

ci(ruff): Stricter code quality rules #353

Merged
merged 23 commits into from Jul 1, 2023
Merged

ci(ruff): Stricter code quality rules #353

merged 23 commits into from Jul 1, 2023

Conversation

tony
Copy link
Member

@tony tony commented Jul 1, 2023

@codecov
Copy link

codecov bot commented Jul 1, 2023

Codecov Report

Merging #353 (7325ece) into master (6f1a723) will decrease coverage by 0.56%.
The diff coverage is 62.06%.

❗ Current head 7325ece differs from pull request most recent head f77b862. Consider uploading reports for the commit f77b862 to get more accurate results

@@            Coverage Diff             @@
##           master     #353      +/-   ##
==========================================
- Coverage   84.75%   84.20%   -0.56%     
==========================================
  Files          21       21              
  Lines         702      709       +7     
==========================================
+ Hits          595      597       +2     
- Misses        107      112       +5     
Impacted Files Coverage Δ
examples/variant_ts_difficulties.py 50.00% <0.00%> (ø)
src/cihai/constants.py 87.50% <ø> (ø)
src/cihai/data/unihan/dataset.py 91.83% <ø> (ø)
src/cihai/db.py 90.90% <ø> (ø)
src/cihai/types.py 93.54% <ø> (ø)
src/cihai/extend.py 75.00% <50.00%> (-1.67%) ⬇️
src/cihai/_internal/config_reader.py 87.50% <55.55%> (-7.50%) ⬇️
src/cihai/core.py 82.60% <71.42%> (-2.24%) ⬇️
src/cihai/data/unihan/bootstrap.py 90.69% <75.00%> (+1.80%) ⬆️
docs/conf.py 59.00% <100.00%> (ø)
... and 3 more

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

@tony tony force-pushed the ruff-rules branch 2 times, most recently from fbde364 to e1e8a7a Compare July 1, 2023 14:29
tony added 5 commits July 1, 2023 09:35
Though we don't use that rule in settings due to us wanting to keep
capitalization from UNIHAN and it not detecting classes when Automap is
used.
tony added 2 commits July 1, 2023 09:47
src/cihai/_internal/config_reader.py:49:19: TRY003 Avoid specifying long messages outside the exception class
src/cihai/_internal/config_reader.py:112:19: TRY003 Avoid specifying long messages outside the exception class
src/cihai/_internal/config_reader.py:187:19: TRY003 Avoid specifying long messages outside the exception class
src/cihai/core.py:104:19: TRY003 Avoid specifying long messages outside the exception class
Found 4 errors.
@tony tony merged commit 2aacd6f into master Jul 1, 2023
6 checks passed
@tony tony deleted the ruff-rules branch July 1, 2023 14:58
@tony tony changed the title ci(ruff): Update rules ci(ruff): Stricter rules Jul 1, 2023
@tony tony changed the title ci(ruff): Stricter rules ci(ruff): Stricter code quality rules Jul 1, 2023
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