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
Preflight checks hackathon 2024 #2454
base: develop
Are you sure you want to change the base?
Preflight checks hackathon 2024 #2454
Changes from 35 commits
094b9cc
d364f37
6d3b4f5
67480d3
c58a784
466aae9
de6ab85
c0c2fcf
ac74b95
13c98b8
f8a7011
d351df6
700534c
2f6f786
05b7052
91ea604
3626f35
a24cb36
7661032
b70dccf
d6beb74
6ef1bea
da42ec6
298c1d0
a18c4bd
f9d66d8
06b79cd
9fd9c57
44c4ce4
c771c27
b5003bd
74d902f
e9ec311
99587e5
59bc9bf
e907472
fabdad2
0b9ae71
192ff7e
c960997
32d60a7
02af5b5
0bfbfff
73c0c9e
b735d2d
4435761
9818045
9300840
91c8475
26a2707
2718ef9
a537784
89db8fd
2f3f7ce
e4cb829
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
useless check, anyway if there is an empty list, it will not be enumerated.
The rules of good form say that it is better to return an empty list instead of
None
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.
else not needed since the if branch returns
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.
used only once, no need for a variable. also, since get_load_stat has
cad
as the first argument, couldn't just checkcad.IsLinked
by itself?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 can be extracted to a function that returns the level name or the warning, so that we can continue populating the list instead of use
append
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.
It is better to manage a separate set with the names for quicker membership checks
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.
those can be added to the list initialization after the refactor above.
also
cad.Id
->cad_id
so that variable starts to have some sense 😉