Skip to content

Commit 90203d9

Browse files
committed
SPYTHON-21 fix pylint issues
1 parent 7c5eb7e commit 90203d9

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

lokalise/oauth2/auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def auth(self,
3434
scope: Union[List, str],
3535
redirect_uri: Optional[str] = None,
3636
state: Optional[str] = None) -> str:
37-
"""Generate a new auth URL. Users have to visit it and explicitly approve the requested permissions
37+
"""Generate a new auth URL. Users have to visit it and
38+
explicitly approve the requested permissions
3839
3940
:param scope: Requested scopes
4041
:type scope: list or str

lokalise/oauth2/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
This module provides HTTP request methods specifically for OAuth 2 flow.
55
"""
66

7-
import requests
87
from typing import Optional, Dict
8+
import requests
99
from lokalise.request_utils import raise_on_error, __format_params, __prepare
1010
from lokalise._version import __version__
1111

lokalise/request_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
import json
88
from typing import Any, Optional, Dict, NoReturn
9-
from lokalise import errors
109
from requests import Response
10+
from lokalise import errors
1111

1212

1313
def raise_on_error(response: Response, data: Dict[str, Any]) -> None:
14+
"""Raises an error for HTTP codes 400+
15+
"""
1416
if response.status_code > 399 or 'error' in data:
1517
respond_with_error(data, response.status_code)
1618

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ addopts = -s --cov=lokalise --cov-report html --pylint
1111

1212
[pylint.MASTER]
1313
min-public-methods=0
14-
max-public-methods=100
14+
max-public-methods=150
1515
min-similarity-lines=5
1616
max-module-lines=2500

0 commit comments

Comments
 (0)