-
Notifications
You must be signed in to change notification settings - Fork 7
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
Migrate formatter and linter to ruff #72
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #72 +/- ##
=======================================
Coverage 93.39% 93.40%
=======================================
Files 28 28
Lines 999 970 -29
=======================================
- Hits 933 906 -27
+ Misses 66 64 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
28fac86
to
7ab9faf
Compare
I added N80* ignores to the ruff file since we move away from python naming convention at several places. This is because we follow in these cases GraphQL naming convention. |
b34af28
to
e48f4b8
Compare
8a421af
to
3b7e343
Compare
We migrate to ruff for the linter and formatter with the settings of aiida-core as well as the pre-commit hooks used for formatting. This makes the repository more compatible with aiida-core and also allows solves more linter problems automatically which should speed up development
In several places we do not follow the pep8 naming convention but rather GraphQL one. We therefore add the N80* linter ignores to disable the linter for these cases.
This commit is mainly the result of running `pre-commit run --all-files` with the previous changes in the formatter and linter. There is some additional manual changes to fix linebreaks.
3b7e343
to
11d8aad
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.
Great!
Since the goal is to integrate this repo back to aiida-coreTo be more compatible with newest aiida-core version this PR migrates linter to ruff with the settings as they are used in aiida-core