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

Use ruff as code formatter #593

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Use ruff as code formatter #593

merged 2 commits into from
Jan 19, 2024

Conversation

unkcpz
Copy link
Member

@unkcpz unkcpz commented Jan 17, 2024

aiida-core from 2.5.0 start to move to using ruff as code formatter, it is much faster.

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (5f40802) 80.86% compared to head (c1f7f52) 80.86%.

Files Patch % Lines
src/aiidalab_qe/common/node_view.py 0.00% 1 Missing ⚠️
src/aiidalab_qe/common/setup_pseudos.py 0.00% 1 Missing ⚠️
src/aiidalab_qe/plugins/bands/workchain.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #593   +/-   ##
=======================================
  Coverage   80.86%   80.86%           
=======================================
  Files          49       49           
  Lines        3429     3429           
=======================================
  Hits         2773     2773           
  Misses        656      656           
Flag Coverage Δ
python-3.10 80.86% <0.00%> (ø)
python-3.8 80.91% <0.00%> (ø)
python-3.9 80.91% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AndresOrtegaGuerrero
Copy link
Member

@unkcpz thank you! , I noticed that the pre-commit.ci fail , could you have a look ?

.pre-commit-config.yaml Outdated Show resolved Hide resolved
@unkcpz
Copy link
Member Author

unkcpz commented Jan 17, 2024

Okay, it was a bug of ruff 0.1.12, should be find now.

Copy link
Member

@AndresOrtegaGuerrero AndresOrtegaGuerrero left a comment

Choose a reason for hiding this comment

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

LGTM! thank you!

@unkcpz unkcpz merged commit 622a922 into aiidalab:main Jan 19, 2024
14 checks passed
unkcpz added a commit that referenced this pull request Jan 24, 2024
The problem is introduced by #593, where I move the load_profile to after the import of AWB.
unkcpz added a commit to unkcpz/aiidalab-qe that referenced this pull request Jan 25, 2024
The problem is introduced by aiidalab#593, where I move the load_profile to after the import of AWB.
@unkcpz unkcpz deleted the refac/xx/to-ruff branch June 24, 2024 16:34
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

Successfully merging this pull request may close these issues.

None yet

2 participants