From 0ee8a8ab29e509e13dff7e0838c291e6af947356 Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Wed, 8 Mar 2023 16:50:16 +0100 Subject: [PATCH] Edit .pylintrc with new rules. --- .pylintrc | 12 ++++++++++++ .../rest/endpoints/rest_authenticated_endpoints.py | 2 -- bfxapi/rest/endpoints/rest_merchant_endpoints.py | 2 -- bfxapi/rest/endpoints/rest_public_endpoints.py | 2 -- bfxapi/utils/__init__.py | 2 +- bfxapi/websocket/client/bfx_websocket_inputs.py | 2 -- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.pylintrc b/.pylintrc index f63ddd0..0127cfd 100644 --- a/.pylintrc +++ b/.pylintrc @@ -17,12 +17,24 @@ disable= dangerous-default-value, inconsistent-return-statements, +[VARIABLES] + +allowed-redefined-builtins=type,dir,id,all,format,len + [FORMAT] max-line-length=120 +expected-line-ending-format=LF + +[BASIC] + good-names=id,on,pl,t,ip,tf,A,B,C,D,E,F [TYPECHECK] generated-members=websockets + +[STRING] + +check-quote-consistency=yes diff --git a/bfxapi/rest/endpoints/rest_authenticated_endpoints.py b/bfxapi/rest/endpoints/rest_authenticated_endpoints.py index 97f85e7..a65ac1d 100644 --- a/bfxapi/rest/endpoints/rest_authenticated_endpoints.py +++ b/bfxapi/rest/endpoints/rest_authenticated_endpoints.py @@ -1,5 +1,3 @@ -#pylint: disable=redefined-builtin - from typing import Dict, List, Tuple, Union, Literal, Optional from decimal import Decimal from datetime import datetime diff --git a/bfxapi/rest/endpoints/rest_merchant_endpoints.py b/bfxapi/rest/endpoints/rest_merchant_endpoints.py index 0c498c3..bf806af 100644 --- a/bfxapi/rest/endpoints/rest_merchant_endpoints.py +++ b/bfxapi/rest/endpoints/rest_merchant_endpoints.py @@ -1,5 +1,3 @@ -#pylint: disable=redefined-builtin - from typing import TypedDict, Dict, List, Union, Literal, Optional, Any from decimal import Decimal diff --git a/bfxapi/rest/endpoints/rest_public_endpoints.py b/bfxapi/rest/endpoints/rest_public_endpoints.py index 66382f4..a4eee06 100644 --- a/bfxapi/rest/endpoints/rest_public_endpoints.py +++ b/bfxapi/rest/endpoints/rest_public_endpoints.py @@ -1,5 +1,3 @@ -#pylint: disable=redefined-builtin - from typing import List, Union, Literal, Optional, Any, cast from decimal import Decimal diff --git a/bfxapi/utils/__init__.py b/bfxapi/utils/__init__.py index df6e2da..32f9209 100644 --- a/bfxapi/utils/__init__.py +++ b/bfxapi/utils/__init__.py @@ -1 +1 @@ -NAME = "utils" +NAME = "utils" diff --git a/bfxapi/websocket/client/bfx_websocket_inputs.py b/bfxapi/websocket/client/bfx_websocket_inputs.py index 77a1521..f306bcb 100644 --- a/bfxapi/websocket/client/bfx_websocket_inputs.py +++ b/bfxapi/websocket/client/bfx_websocket_inputs.py @@ -1,5 +1,3 @@ -#pylint: disable=redefined-builtin - from decimal import Decimal from datetime import datetime