diff --git a/.forgejo/workflows/config/.pylintrc b/.forgejo/workflows/config/.pylintrc index f4ea6d7..8504d84 100644 --- a/.forgejo/workflows/config/.pylintrc +++ b/.forgejo/workflows/config/.pylintrc @@ -1,3 +1,7 @@ [MESSAGES CONTROL] disable= - too-many-lines + line-too-long + invalid-name + too-few-public-methods + too-many-instance-attributes + too-many-arguments diff --git a/pyzipline/exceptions.py b/pyzipline/exceptions.py index f334681..6ef9711 100644 --- a/pyzipline/exceptions.py +++ b/pyzipline/exceptions.py @@ -1,3 +1,5 @@ +"""This is a list of all of the exceptions used in PyZipline.""" + class HTTPFailure(Exception): """ Raised when an HTTP request fails. diff --git a/pyzipline/models.py b/pyzipline/models.py index 1ca436d..205585c 100644 --- a/pyzipline/models.py +++ b/pyzipline/models.py @@ -48,7 +48,7 @@ class File: def __init__( self, createdAt: datetime, - id: int, + id: int, # pylint: disable=redefined-builtin mimetype: str, views: int, name: str, @@ -107,7 +107,7 @@ class Invite: """ def __init__( self, - id: int, + id: int, # pylint: disable=redefined-builtin code: str, createdAt: datetime, expiredAt: datetime, @@ -138,7 +138,7 @@ class OAuth: """ def __init__( self, - id: int, + id: int, # pylint: disable=redefined-builtin provider: str, userId: int, providerId: str, @@ -177,7 +177,7 @@ class User: """ def __init__( self, - id: int, + id: int, # pylint: disable=redefined-builtin uuid: str, username: str, avatar: Optional[str], diff --git a/pyzipline/rest_adapter.py b/pyzipline/rest_adapter.py index bb09265..043b291 100644 --- a/pyzipline/rest_adapter.py +++ b/pyzipline/rest_adapter.py @@ -1,3 +1,4 @@ +"""This module contains the RestAdapter class, which is used to make requests to the Zipline server.""""" import logging from typing import Dict from json import JSONDecodeError