-
Notifications
You must be signed in to change notification settings - Fork 246
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
Add arc and solid_arc method to FPDF #266
Conversation
arc and solid_arc methods allow to draw respectively an arc and a solid arc in a PDF file in a similar way to the rect, circle and ellipse methods.
I'm not sure where the test failed. Can you provide me with some details so that I can correct my mistake please ? |
Sure! And thanks for your contribution! Seems like A side question: are you doing this for hacktoberfest? |
Great ! Thanks for the tip I'm not familiar with pylint. I will make the changes to disable the errors as, even if the 2 functions are similar, they don't really have the same purposes. Indeed, I'm participating to Hacktoberfest despite the late timing 😄 |
Unfortunately, pylint seems to have an issue about disabling the |
Damn. A few ideas:
If everything fails, I'm fine with disabling this check in the root |
@allcontributors please add @tabarnhack for code |
I've put up a pull request to add @tabarnhack! 🎉 |
test_solid_arc.py disabled
Okay, I've found a workaround even if I'm not really proud of it 😅 |
Nice! |
There was an error in this test which make it fail everytime due to differences between how the 2 compared files are built
Codecov Report
@@ Coverage Diff @@
## master #266 +/- ##
==========================================
+ Coverage 87.05% 87.09% +0.04%
==========================================
Files 16 16
Lines 3753 3819 +66
Branches 805 814 +9
==========================================
+ Hits 3267 3326 +59
- Misses 315 319 +4
- Partials 171 174 +3
Continue to review full report at Codecov.
|
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.
You did an excellent job here!
The code, the doc and the tests are great.
I suggested some minor changes.
Could you also please a short mention of your addition to CHANGELOG.md
?
Several changes according to reviews from the PR. Changes are: - More testing cases for arc and solid_arc - Typo correction - Style value handling - Unnecessary pylint comment removed
Perfect! I merged your PR, thank you for your contribution! |
FYI I mentioned you in this blog article 😉 |
According to #258, this PR adds the 2 methods
arc
andsolid_arc
.arc
andsolid_arc
methods allow to draw respectively an arc and a solid arc in a PDF file in a similar way to therect
,circle
andellipse
methods.Tests and documentation have also been improved in order to add these 2 features.