Skip to content
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

Four pylint errors in utils and another test failure #301

Open
juliangilbey opened this issue Dec 4, 2021 · 1 comment
Open

Four pylint errors in utils and another test failure #301

juliangilbey opened this issue Dec 4, 2021 · 1 comment
Assignees

Comments

@juliangilbey
Copy link
Contributor

I was looking at issue #298 and have submitted a patch for it. Unfortunately, though, the test still fails, because qdarkstyle.utils.images.create_images() requires the palette passed to it to have an ID component, but when the new palette is created by qdarkstyle.utils.scss.create_custom_qss(), it is not given an ID before calling create_images(). I am not sure what the ID should be, so I'm a little wary of trying to patch it myself.

I did follow the code a little further and stumbled on another issue. So I then decided to run pylint over the whole package, and found four errors in the utils section, so at least they're localised. (All of the other errors reported were false positives due to pylint not being able to identify the contents of pyqt.)

qdarkstyle/utils/__main__.py:60:12: E1120: No value for argument 'palette' in function call (no-value-for-parameter)

This is a call to the run_process function from the QSSFileHandler class. I have no idea what the palette should be, so I don't know how to fix this issue.

qdarkstyle/utils/scss.py:218:17: E1123: Unexpected keyword argument 'qss_filepath' in function call (unexpected-keyword-arg)
qdarkstyle/utils/scss.py:218:17: E1123: Unexpected keyword argument 'main_scss_filepath' in function call (unexpected-keyword-arg)
qdarkstyle/utils/scss.py:218:17: E1123: Unexpected keyword argument 'variables_scss_filepath' in function call (unexpected-keyword-arg)

This is a call to create_qss() which only takes a palette argument, and then defines its own filepaths. Perhaps the intention is that these parameters should override the defaults defined in the current body of the function?

@dpizetta dpizetta self-assigned this Dec 10, 2021
@dpizetta
Copy link
Collaborator

Hey, @juliangilbey we need to update this function for creating custom palettes, it is totally out of date after the last big update we have. I'll be working on it, for now, I've just raised a NonImplementedError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants