chore(api): disable duplicate-code check (#2799)
* chore(api): disable duplicate-code check * refactor: fix linting errors
This commit is contained in:
parent
59f7bbdcc3
commit
651bb9261c
|
@ -1,4 +1,4 @@
|
|||
from .core.models import Role
|
||||
from .core.models.role import Role
|
||||
|
||||
GUEST_PERMISSIONS = [
|
||||
"view_schedule",
|
||||
|
|
|
@ -69,7 +69,7 @@ class Show(models.Model):
|
|||
auto_playlist_enabled = models.BooleanField(db_column="has_autoplaylist")
|
||||
auto_playlist_repeat = models.BooleanField(db_column="autoplaylist_repeat")
|
||||
|
||||
hosts = models.ManyToManyField(
|
||||
hosts = models.ManyToManyField( # type: ignore[var-annotated]
|
||||
"core.User",
|
||||
through="ShowHost",
|
||||
)
|
||||
|
|
|
@ -10,6 +10,7 @@ django-settings-module = "libretime_api.settings.testing"
|
|||
[tool.pylint.messages_control]
|
||||
extension-pkg-whitelist = "pydantic"
|
||||
disable = [
|
||||
"duplicate-code",
|
||||
"fixme",
|
||||
"missing-class-docstring",
|
||||
"missing-function-docstring",
|
||||
|
|
Loading…
Reference in New Issue