chore(api): disable duplicate-code check (#2799)

* chore(api): disable duplicate-code check

* refactor: fix linting errors
This commit is contained in:
Jonas L 2023-12-18 18:54:07 +01:00 committed by GitHub
parent 59f7bbdcc3
commit 651bb9261c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from .core.models import Role from .core.models.role import Role
GUEST_PERMISSIONS = [ GUEST_PERMISSIONS = [
"view_schedule", "view_schedule",

View File

@ -69,7 +69,7 @@ class Show(models.Model):
auto_playlist_enabled = models.BooleanField(db_column="has_autoplaylist") auto_playlist_enabled = models.BooleanField(db_column="has_autoplaylist")
auto_playlist_repeat = models.BooleanField(db_column="autoplaylist_repeat") auto_playlist_repeat = models.BooleanField(db_column="autoplaylist_repeat")
hosts = models.ManyToManyField( hosts = models.ManyToManyField( # type: ignore[var-annotated]
"core.User", "core.User",
through="ShowHost", through="ShowHost",
) )

View File

@ -10,6 +10,7 @@ django-settings-module = "libretime_api.settings.testing"
[tool.pylint.messages_control] [tool.pylint.messages_control]
extension-pkg-whitelist = "pydantic" extension-pkg-whitelist = "pydantic"
disable = [ disable = [
"duplicate-code",
"fixme", "fixme",
"missing-class-docstring", "missing-class-docstring",
"missing-function-docstring", "missing-function-docstring",