-
Notifications
You must be signed in to change notification settings - Fork 157
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 workflow to lint 3rd party repositories #783
Conversation
77df507
to
b633486
Compare
04f7178
to
80aa43b
Compare
So I'm not sure about the poetry lockfile. I installed poetry 1.1.x as described in the docs but it changed a lot of things in the lockfile that weren't there before, although the newly added dependency didn't introduce them, AFAIK. Not sure how you handled that before. |
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.
I did some refactoring.
- I reintroduced the matrix so that you can clearly see which repo failed in the CI.
- There is some duplication here between the workflow file and the Python file to make this work. It's probably fine.
- This requires Poetry 1.2 to make this work because of poetry run does not relay exit code python-poetry/poetry#2369
I will work on making some changes to switch to Poetry 1.2 later.
- Probably some more.
30e8697
to
90ac9b3
Compare
e15451c
to
2792557
Compare
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
This is needed because Poetry 1.2 is the version that introduced return codes for scripts generated by Poetry, and we depend on the return code of `reuse`. See <python-poetry/poetry#2369>. Signed-off-by: Carmen Bianca BAKKER <[email protected]>
2792557
to
25fbc63
Compare
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
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/reuse-lint.yml Apparently KDE removes the po files before doing the check. |
I'm not sure how we shall proceed here. I wouldn't want to integrate dirty hacks that third parties have made in order to become REUSE compliant. |
Should we communicate with the KDE people to see if they can use In any case I would really like to include a KDE project here. I'm happy to implement a hacky workaround to make this test run. Not in reuse itself; just in the test script. |
Yes, that would be good. Perhaps we can ask @cordlandwehr?
How about we merge this PR without KDE first, and create an issue/PR for the KDE one? |
@mxmehl I think our problem in KDE is more a procedure one than a technical one. The story is that many applications were transformed to be REUSE complient. At that time translations lived outside the repository. About a year ago the translation workflow was changed to move translations into the individual repositories. Yet, most of them are not yet REUSE complient and that will take time for the reason that translation files are modified by external tools (note: these tools also write and update copyright information) which are not yet ready to output SPDX complient files. |
That's awesome. It depends on the workflow, I think. We use (hosted) weblate, which doesn't add copyright headers. But if you can implement this without dep5, all the better. @mxmehl How do you want to proceed? Write a special case for KDE, or create an issue and wait? |
I think it's worth to merge this PR (and remove KDE beforehand) so we can make use of the tests in the upcoming PRs. But yes, please create an issue to add KDE (and perhaps also other repos/orgs), it's worth it :) |
Fixes #782