-
Notifications
You must be signed in to change notification settings - Fork 33
chore: Added a top-level Makefile in python-sdk to simplify running tests and linters #241
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
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughA Makefile was added at the project root defining seven automation targets for common development tasks: dependency synchronization via Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related issues
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 2
🧹 Nitpick comments (1)
Makefile (1)
25-31:doctarget exceeds checkmake style guidance.The
doctarget body contains 7 lines of output commands, exceeding checkmake's recommended maximum of 5 lines. While this is a style preference rather than a correctness issue, consider condensing the help output if verbosity becomes a concern, or document the exception.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Makefile(1 hunks)
🧰 Additional context used
🪛 checkmake (0.2.2)
Makefile
[warning] 25-25: Target body for "doc" exceeds allowed length of 5 (7).
(maxbodylength)
[warning] 1-1: Missing required phony target "all"
(minphony)
[warning] 1-1: Missing required phony target "clean"
(minphony)
🔇 Additional comments (2)
Makefile (2)
10-11: Verify test target invocation syntax.The
testtarget correctly uses$(if $(TEST),$(TEST),test/)to conditionally run a specific test or default to thetest/directory. The coverage configuration and pytest arguments align with the PR objectives.Confirm that
openfga_sdkis the correct package name for coverage instrumentation by searching the repository structure.
4-5: Targetssync,lint, andfmtare well-formed.These targets correctly delegate to
uvfor dependency management, linting, and formatting, matching the stated objectives.Also applies to: 14-15, 18-19
Fixed a typo in MakeFile Co-authored-by: Anurag Bandyopadhyay <[email protected]>
SoulPancake
left a comment
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.
Can you also add a check --fix command ?
|
@SoulPancake , I have added the check --fix, is ther anything more that i can do |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (70.86%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #241 +/- ##
=======================================
Coverage 70.86% 70.86%
=======================================
Files 135 135
Lines 10932 10932
=======================================
Hits 7747 7747
Misses 3185 3185 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SoulPancake
left a comment
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.
Thanks, LGTM 🚀
Description
Added a standardized Makefile would make it much easier to test and lint the code locally with simple, consistent commands which would make it easy for contrubuters.
What problem is being solved?
How is it being solved?
What changes are made to solve it?
Added a Makefile to it
References
Closes #240
Review Checklist
mainSummary by CodeRabbit