-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Only filter files in directories starting with . #16784
Conversation
Mac builds were missing some definitions, which happened because there was a . in the directory. The reason why we filtered these in the first place was because Apple doesn't notarize/sign an App correctly if the directory starts with a . e.q.: .dylibs in scipy and shapely. Made the filtering less aggressive Contributes to CURA-11014
Contributes to CURA-11014
Folder names in the quality folder renaming done so that in mac while building it doesn't skip adding it to the package. |
This reverts commit d8b5b26.
This reverts commit f806a61.
A new Linter subclass - 'Directory' has been created and integrated into the linting process to handle directory naming conventions, specifically for MacOS. MacOS has issues when signing and notarizing directories with '.' in their names. The new class will trigger an 'Error' level diagnostic if this convention is violated. The linter will become a required check with this update, as its new check configuration was added to '.printer-linter'. The version number in 'pyproject.toml' was also incremented to reflect these changes. Contributes to CURA-11014
Contributes to CURA-11014
yield Diagnostic( | ||
file = self._file, | ||
diagnostic_name = "diagnostic-resources-macos-app-directory-name", | ||
message = f"Directory name containing a `.` not allowed {self._file.suffix}, rename directory containing this file e.q: `_`", |
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.
We should maybe mention that this is specifically for MacOS. Less questions from implementers that way ;-)
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.
LGTM, good work Jelle & Saumya.
Description
Mac builds were missing some definitions, which happened because there was
a . in the directory. The reason why we filtered these in the first place
was because Apple doesn't notarize/sign an App correctly if the directory
starts with a . e.q.: .dylibs in scipy and shapely.
Renamed the resources folder containing a
.
with an_
Added a new diagnostic check to the printer-linter which will diagnose if the directory contains a
.
Fixes #16007
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: