From 5db3f7f1f47d3626339f183f11f3c24f8b9e34ea Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 20 Dec 2023 23:50:03 -0500 Subject: [PATCH] fix: pylint fixes --- .forgejo/workflows/config/.pylintrc | 6 +++++- pyzipline/exceptions.py | 2 ++ pyzipline/models.py | 8 ++++---- pyzipline/rest_adapter.py | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) 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