Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 only one global var for marking config folder tree #6610
Use only one global var for marking config folder tree #6610
Changes from 13 commits
fdff314
f7398af
ec3ebec
2663d7e
418cc2a
d7f3684
959a9ad
717cf06
5ed4950
1b26044
c4adbec
8795935
ad1086f
95e305c
dd7f04f
2ce9080
c705267
8408ef5
aa6b44d
bdfedca
a9980a2
627d0da
6cef555
b5cb0d7
6ec11a4
88fe04d
0d87b9b
e8919dc
aec9321
9fd3dae
35b7ae2
341bab5
b4e40de
b540813
6e26eaf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 172 in src/aiida/cmdline/commands/cmd_profile.py
Codecov / codecov/patch
src/aiida/cmdline/commands/cmd_profile.py#L172
Check warning on line 174 in src/aiida/cmdline/commands/cmd_profile.py
Codecov / codecov/patch
src/aiida/cmdline/commands/cmd_profile.py#L174
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.
Are all of these type annotations necessary? I would expect these types would be inferred.
Does mypy complain when you remove them?
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.
mypy not complain, again, it is a suggestion from pyright. For the class attributes, if the class is not annotate with @Final, better to add type to avoid being wrongly override.
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.
Too keep the diff small, I would prefer to not do unrelated changes in this PR, since it should be reviewed carefully given that it touches core functionality.
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.
I am confused. You added a
config_folder
parameter here, but I don't see where you changed the places where the Profile objects are created?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.
Yes, this can be removed. I put here just to show the profile class is independent of the default config folder. In principle, it should be possible to create a profile from the other config folder and mapping to the correct log/pid files.
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.
Good to know, but unless we actually use it somewhere I would remove this for now.