-
Notifications
You must be signed in to change notification settings - Fork 18
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
🧹 Upgrade syntax to py310 using pyupgrade #1162
Conversation
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.6.0 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Codecov ReportBase: 87.6% // Head: 87.5% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1162 +/- ##
=======================================
- Coverage 87.6% 87.5% -0.1%
=======================================
Files 103 103
Lines 4899 4895 -4
Branches 807 806 -1
=======================================
- Hits 4292 4288 -4
Misses 489 489
Partials 118 118
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.03%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Nice we also had sourcery trigger ^^ |
2fe7776
to
03dc99b
Compare
Avoid Duplicated Lines (%) false positives until SonarCloud is intelligent enough to avoid imports in Python files.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Since we upgraded to py310+ we can also make use of the syntax improvements.
The changes are made by simply telling
pyupgrade
that we use python 3.10+ syntax in.pre-commit-config.yaml
Change summary
Checklist