-
Notifications
You must be signed in to change notification settings - Fork 24
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
[qa] Switched to prettier for CSS/JS formatting #33
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.
This package is still using openwisp-utils[qa]~=1.1.0
, so probably that's why the QA checks are failing. I am not 100% sure the warning is the culprit of the QA checks failure.
@nemesifier |
Hey @nemesifier ./setup.py:24:89: E501 line too long (90 > 88 characters)
ERROR: Flake8 check failed! I have used multiline string to fix this |
setup.py
Outdated
'''openwisp-utils[qa] | ||
@ https://github.com/openwisp/openwisp-utils/tarball/1.2''', |
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.
'''openwisp-utils[qa] | |
@ https://github.com/openwisp/openwisp-utils/tarball/1.2''', | |
( | |
'openwisp-utils[qa]' | |
' @ https://github.com/openwisp/openwisp-utils/tarball/1.2' | |
), |
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.
Can we configure prettier to exclude files in /lib/ directory?
.prettierignore
Outdated
@@ -0,0 +1 @@ | |||
flat_json_widget/static/flat-json-widget/js/lib/*.js |
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.
This file does not have a blank line at the end.
Configure your code editor to always add a blank line.
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.
Added
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.
Hi @youhaveme9
Kindly link the issue for which this PR is created, if there is no issue, create one.
.prettierignore
Outdated
@@ -0,0 +1 @@ | |||
flat_json_widget/static/flat-json-widget/js/lib/*.js |
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.
nit:No new line at the end
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.
@youhaveme9 link the prettier issue from openwisp-utils in the PR description please.
Related to: openwisp/openwisp-utils#367.