Python Code Review Guidelines #1743
maximiliankaul
started this conversation in
General
Replies: 1 comment
-
|
Adding this here for a lack of a better place: We have the following policies in place for pull requests:
When reviewing a pull request you have three options:
As for resolving comments, we have the following guideline |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Some points in no particular order:
.first()-> use.firstOrNull()as(only with a very good reason -> rule of thumb "don't")as?(useassertIs<>()when writing tests)is(only for filters)assertEqualson.refersTo-> useassertRefersToassertEqualson.invokes-> useassertInvokeswhenclause when checking for multiple possible types over anifand logs an error/warning when unexpected types occur instead of ignoring the unexpected.foo(rawNode)is not less readable thanfoo(rawNode = rawNode)and acceptable -> be smart about when not to use named parameters).Beta Was this translation helpful? Give feedback.
All reactions