Skip to content

Commit b125986

Browse files
committed
add more linting
1 parent 78677e3 commit b125986

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.pylintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
disable=missing-module-docstring,
33
missing-function-docstring,
44
missing-class-docstring,
5-
fixme
5+
fixme,
6+
too-many-lines

src/aniworld/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .execute import execute
22
from .search import search_anime
3-
from . import globals
3+
from . import globals # pylint: disable=redefined-builtin

src/aniworld/__main__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class CustomTheme(npyscreen.ThemeManager):
7979
}
8080

8181

82+
# pylint: disable=too-many-ancestors, too-many-instance-attributes
8283
class EpisodeForm(npyscreen.ActionForm):
8384
def create(self):
8485
logging.debug("Creating EpisodeForm")
@@ -342,9 +343,9 @@ def go_to_second_form(self):
342343
self.parentApp.switchForm("SECOND")
343344

344345

346+
# pylint: disable=R0901
345347
class SecondForm(npyscreen.ActionFormV2):
346348
def create(self):
347-
348349
anime_slug = self.parentApp.anime_slug
349350
anime_title = format_anime_title(anime_slug)
350351

@@ -389,6 +390,7 @@ def onStart(self):
389390
self.addForm("SECOND", SecondForm, name="Description")
390391

391392

393+
# pylint: disable=R0912, R0915
392394
def parse_arguments():
393395
logging.debug("Parsing command line arguments")
394396

0 commit comments

Comments
 (0)