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

[qa] Switched to prettier for CSS/JS formatting #33

Merged
merged 8 commits into from
Mar 6, 2025

Conversation

youhaveme9
Copy link
Contributor

@youhaveme9 youhaveme9 commented Jan 28, 2025

Copy link
Member

@nemesifier nemesifier left a 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.

@youhaveme9
Copy link
Contributor Author

@nemesifier
This should fix ig

@youhaveme9
Copy link
Contributor Author

youhaveme9 commented Jan 30, 2025

Hey @nemesifier
I think we should use openwsip-utils[qa] @ https://github.com/openwisp/openwisp-utils/tarball/1.2 for correct openwsip-utils version
But this line exceeds the character limit check of flake8

./setup.py:24:89: E501 line too long (90 > 88 characters)
ERROR: Flake8 check failed!

I have used multiline string to fix this
Would it work?

setup.py Outdated
Comment on lines 24 to 25
'''openwisp-utils[qa]
@ https://github.com/openwisp/openwisp-utils/tarball/1.2''',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'''openwisp-utils[qa]
@ https://github.com/openwisp/openwisp-utils/tarball/1.2''',
(
'openwisp-utils[qa]'
' @ https://github.com/openwisp/openwisp-utils/tarball/1.2'
),

@pandafy pandafy self-requested a review March 4, 2025 17:00
Copy link
Member

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
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Copy link
Member

@devkapilbansal devkapilbansal left a 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
Copy link
Member

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

Copy link
Member

@nemesifier nemesifier left a 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.

@nemesifier nemesifier added the enhancement New feature or request label Mar 6, 2025
@nemesifier nemesifier merged commit d258163 into openwisp:master Mar 6, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

4 participants