ubsuny / CP1-24-HW3

Homework 3 template for CP1-24
1 stars 16 forks source link

Linting required in HW? #33

Open ojha-aditya opened 1 week ago

ojha-aditya commented 1 week ago

@laserlab do we need to compulsorily implement listing for this HW?

laserlab commented 1 week ago

no, but the reviewer might point out shortcomings to your code which includes the same errors that the linter points out

laserlab commented 1 week ago

see also #35

ojha-aditya commented 1 week ago

Understood. Thank you

ojha-aditya commented 1 week ago

So as reviewer we also go through the linting score and get that fixed before approving?

laserlab commented 1 week ago

The linter will help you to review, but there can be more issues that the linter doesn’t catch

ojha-aditya commented 1 week ago

And what is a good enough linting score to merge the PR?

ojha-aditya commented 1 week ago

Also, can we use code formatters like Black for linting the code automatically? For future HWs I mean.

laserlab commented 1 week ago

Also, can we use code formatters like Black for linting the code automatically? For future HWs I mean.

You can use autoformatters.

ojha-aditya commented 1 week ago

Thank you for the clarification, closing this as well.

haiderabbas007 commented 6 days ago

Also, can we use code formatters like Black for linting the code automatically? For future HWs I mean.

Does this mean our code will get corrected on the go and won't have linting issues when we do a PR or when we do local linting? If so, why are such autoformatters not applied to codespaces/IDEs etc. by default to get rid of linting issues altogether?