From 20f74ba02b7e1c5950b2504feb8e673fa69162f2 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 18 Jun 2021 13:23:06 -0700 Subject: [PATCH] More disables --- .github/workflows/pylint.yml | 3 ++- bookwyrm/forms.py | 2 -- bookwyrm/models/user.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 98517135..0f59c750 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,4 +20,5 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint bookwyrm/ --ignore=migrations --disable=R,C,E1101 + pylint bookwyrm/ --ignore=migrations --disable=E1101,E1136,R0903,R0901,W0707,W0511 + diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py index 4931805f..04211802 100644 --- a/bookwyrm/forms.py +++ b/bookwyrm/forms.py @@ -181,8 +181,6 @@ class EditionForm(CustomForm): "authors", "parent_work", "shelves", - "subjects", # TODO - "subject_places", # TODO "connector", ] diff --git a/bookwyrm/models/user.py b/bookwyrm/models/user.py index d9f3eba9..ba97330d 100644 --- a/bookwyrm/models/user.py +++ b/bookwyrm/models/user.py @@ -356,7 +356,7 @@ class AnnualGoal(BookWyrmModel): def get_remote_id(self): """put the year in the path""" - return "%s/goal/%d" % (self.user.remote_id, self.year) + return "{:s}/goal/{:d}".format(self.user.remote_id, self.year) @property def books(self):