-
Notifications
You must be signed in to change notification settings - Fork 253
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
Specify a minimal version of fontTools in setup.py #538
Conversation
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.
Thank you for your PR!
I'm going to approve the GitHub Actions pipeline execution,
but there should not be that many changes triggered by black
,
as we already ensure the code formatting in the CI pipeline:
https://github.com/PyFPDF/fpdf2/blob/master/.github/workflows/continuous-integration-workflow.yml#L38
Is you version of black
up to date?
What caused all those code style changes in the PR?
Sadly the logs your provided are truncated and does not allow me to understand why the tests are failing in your development environment. However if you only make a change to |
Codecov Report
@@ Coverage Diff @@
## master #538 +/- ##
==========================================
- Coverage 94.10% 93.98% -0.12%
==========================================
Files 22 22
Lines 6206 6087 -119
Branches 1265 1235 -30
==========================================
- Hits 5840 5721 -119
Misses 191 191
Partials 175 175
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
b73828a
to
69d1475
Compare
when rebasing the PR, I had to commit changes from an example csv file as it was seen to have "changed". The content of the file seem to be exactly the same though. I couldn't figure out the reason it found this file as changed. How can I take this file away from the PR? |
It's a matter of line endings (CRLF vs LF). |
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Sorry, I'm outbidding you on the minimum version of fonttools in #545, so this PR is probably obsolete now... 😉 |
I'd prefer to merge @guillaume-dotcom contribution first, given the time he put in this PR. |
@Lucas-C, Fine with me, just go ahead if it's ready. |
…into issue-524
@Lucas-C thanks for this :). Appreciated. |
Merged! |
This PR aims to fix #524
It includes:
setup.py
and specify a fixed version of fontTools (latest tested: v4.37.1).fpdf.py
to generate a warning if the fontTools package's version is something else than the above.Black
to .py files for proper formatting.Checklist:
The GitHub pipeline is OK (green),
meaning that both
pylint
(static code analyzer) andblack
(code formatter) are happy with the changes of this PR.A unit test is covering the code added / modified by this PR - N/A
This PR is ready to be merged
In case of a new feature, docstrings have been added, with also some documentation in the
docs/
folder - N/AA mention of the change is present in
CHANGELOG.md
I have 5 failing tests with
pytest
, however they are not affected by my changes. Please see below.By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.