NyaaPy icon indicating copy to clipboard operation
NyaaPy copied to clipboard

Add Pylint

Open JuanjoSalvador opened this issue 7 years ago • 2 comments

Adding Pylint I can improve my code, that's a good practise.

https://pylint.org/

JuanjoSalvador avatar Nov 04 '17 01:11 JuanjoSalvador

I just checked some of the pylint default warnings and got some questions:

How should we treat API changes? For example: Nyaa.get and SukebeiNyaa.get have an inconsistently named parameter called id (or view_id in Nyaa.get). If we renamed that to view_id, which would be more specific, code like sukebei_nyaa.get(id="123") would break.

How should we handle the integration/automation of pylint? The simplest thing would be running it manually; this is already possible. We could also include it in a Pre-commit hook or run it from the CI. While the last option might be harder to set up, it could be interesting, depending on the number of automated tests planned.

We already talked about Pantsu; remove it from the project? I don't want to investigate warnings in places that will be deleted anyway.

Euklios avatar Apr 23 '22 20:04 Euklios

I'll take this, and I'm gonna think about how we can deal with this. At this moment I have some fixes on my local branches, but it needs some design changes.

JuanjoSalvador avatar Apr 23 '22 22:04 JuanjoSalvador