-
Notifications
You must be signed in to change notification settings - Fork 5
Merge from master #627
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
Merge from master #627
Conversation
Merge pull request #607 from iKostanOrg/master
Merge from master
[20/112] check kyu_7.powers_of_3.largest_power FAILED: /home/runner/work/codewars/codewars/.pytype/pyi/kyu_7/powers_of_3/largest_power.pyi /opt/hostedtoolcache/Python/3.11.11/x64/bin/python -m pytype.main --imports_info /home/runner/work/codewars/codewars/.pytype/imports/kyu_7.powers_of_3.largest_power.imports --module-name kyu_7.powers_of_3.largest_power --platform linux -V 3.11 -o /home/runner/work/codewars/codewars/.pytype/pyi/kyu_7/powers_of_3/largest_power.pyi --analyze-annotated --nofail --quick /home/runner/work/codewars/codewars/kyu_7/powers_of_3/largest_power.py /home/runner/work/codewars/codewars/kyu_7/powers_of_3/largest_power.py:22:9: error: in largest_power: Type annotation for result does not match type of assignment [annotation-type-mismatch] Annotation: int Assignment: float In assignment of type: Union[float, int] result = 3 ** n ~~~~~~ For more details, see https://google.github.io/pytype/errors.html#annotation-type-mismatch ninja: build stopped: subcommand failed.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Merge pull request #611 from iKostanOrg/master
Merge from master
Merge pull request #614 from iKostanOrg/master
# Adding 'timeout-minutes: 10' would prevent jobs from running # indefinitely if something goes wrong timeout-minutes: 10
Consider consolidating these similar workflow files into a single workflow with multiple jobs to reduce duplication and improve maintainability. This could be done as a separate PR.
Merge from master
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Merge pull request #624 from iKostanOrg/master
Reviewer's Guide by SourceryThis pull request consolidates numerous improvements across GitHub Actions workflows, code refactoring, test updates, and documentation. Key changes include updating branch filters and timeouts in YAML workflows, enhancing installation commands to use 'python -m pip', refactoring code to use safer evaluation with the asteval module, standardizing multi-line string formatting in tests, and updating dependency tables in the README. Updated Class Diagram for calculate.py using astevalclassDiagram
class Interpreter {
+eval(expression: str) : any
}
class Calculator {
+calculate(s: str) : str
+string_to_math(s: str) : str
}
Calculator ..> Interpreter : uses
note for Calculator "Replaces Python built-in eval with asteval Interpreter\nfor safer expression evaluation"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ikostan - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding
timeout-minutes
to all workflow jobs to prevent indefinite runs. - It looks like you've commented out the
pytype
job in the main workflow; consider removing it entirely if it's no longer needed. - Be careful about ignoring branches in your workflow triggers, as this can lead to unexpected behavior.
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
❌ 36 blocking issues (37 total)
@qltysh one-click actions: |
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Merge pull request #627 from iKostanOrg/master
Summary by Sourcery
Update CI pipelines and dependencies, including switching from Code Climate to QLTY.SH for coverage reports.
Build:
pip
,setuptools
, andwheel
.CI:
python -m
when calling modules.Tests: