-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Contents.plist: use right exception when missing #87
Contents.plist: use right exception when missing #87
Conversation
This pull request introduces 1 alert when merging 714519f into 51d1fe8 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #87 +/- ##
==========================================
- Coverage 99.87% 99.87% -0.01%
==========================================
Files 12 12
Lines 785 784 -1
==========================================
- Hits 784 783 -1
Misses 1 1
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging 94d02fb into 51d1fe8 - view on LGTM.com new alerts:
|
lgtm is somehow out of date with its dependencies? |
str(rel_dir_path), | ||
ufoFormatVersion=self.ufoversion, | ||
validateRead=True, | ||
expectContentsFile=True, |
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.
For (my) future reference, this is the new parameter that was added in fonttools v4.18.0
OK to ignore it. I'm not sure why it flags it but I can see that it was added in fonttools 4.18.0 and your unit tests are passing. This gtg? |
Yes! If you sign off my changes to the existing tests? I found it odd that they tested for success when they should be expecting failure? |
Running tests locally to have a look. I am seeing this message:
This going away soon? |
LGTM. I think that this is a case of a missing test on a test :) Since it was not implemented in fonttools ufoLib and didn't raise an exception, I didn't recognize that my copy/paste code was not testing against the fail case. Bad source passed because there was previously no exception. It failed in the commit that included updated fonttools and ufolint source before the test changes were added (714519f): https://github.com/source-foundry/ufolint/runs/1517236056 |
Posted the deprecation issue in #88. We are ready to merge here. I will update the deprecated source. Thanks Niko!! Update: deprecated source fixed and released in v1.2.0 |
Mh, no idea, but should be easy to fix. |
PS: can't merge so I'll leave that to you :D |
Sorry, I think that the permission system changed since I last added people to this org. Or maybe it went away when I got rid of the tool team that auto added you and Cosimo as watch on any new repository. I didn't want force you to get pinged with all of the notifications. I added you to a new "Maintainers" team and added this repo to it. I'll add the rest of the tool repos so that you have maintain level access to them if you need it. |
…validation new validation added in #87
https://pypi.org/project/ufolint/1.2.0/ Thanks Niko!! |
@felipesanches @graphicore we had to make the fonttools dependency a hard fonttools >= 4.18.0 in ufolint to introduce a new UFO source validation committed in this PR. This was released in v1.2.0. Is this a problem for fontbakery? |
I don't think there's a general problem, at least not in the way and context we use font bakery usually (virtual environments etc.). Similar things have been done before in Font Bakery, I see in setup.py:
From the README of FontTools:
Font Bakery is Python 3.6+ as well. But, @felipesanches is the better person to answer this. |
Need to figure out the tests.
test_validators_plist_ufo2_contents_missing_file_fail
andtest_validators_plist_ufo3_contents_missing_file_fail
don't actually test for failure?