Skip to content

Commit 5f505e9

Browse files
author
eri
committed
Ruff format and auto-fixes
1 parent 7df8bff commit 5f505e9

4 files changed

Lines changed: 574 additions & 390 deletions

File tree

setup.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
import setuptools
22

33
setuptools.setup(
4-
name = 'WS-API',
5-
packages = ['ws_api'],
6-
version = '0.28.1',
7-
license = 'GPL-3.0',
8-
description = 'Access your Wealthsimple account using their (GraphQL) API.',
9-
author = 'Guillaume Boudreau',
10-
author_email = 'guillaume@pommepause.com',
11-
url = 'https://github.com/gboudreau/ws-api-python',
12-
keywords = ['wealthsimple'],
13-
python_requires='>=3.10',
14-
install_requires = [
15-
'requests',
4+
name="WS-API",
5+
packages=["ws_api"],
6+
version="0.28.1",
7+
license="GPL-3.0",
8+
description="Access your Wealthsimple account using their (GraphQL) API.",
9+
author="Guillaume Boudreau",
10+
author_email="guillaume@pommepause.com",
11+
url="https://github.com/gboudreau/ws-api-python",
12+
keywords=["wealthsimple"],
13+
python_requires=">=3.10",
14+
install_requires=[
15+
"requests",
1616
],
17-
classifiers = [
18-
'Development Status :: 3 - Alpha',
19-
'Intended Audience :: Developers',
20-
'Operating System :: OS Independent',
21-
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
22-
'Programming Language :: Python :: 3',
23-
"Programming Language :: Python :: 3.13"
17+
classifiers=[
18+
"Development Status :: 3 - Alpha",
19+
"Intended Audience :: Developers",
20+
"Operating System :: OS Independent",
21+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.13",
2424
],
2525
)

ws_api/exceptions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
21
class CurlException(Exception):
32
pass
43

4+
55
class ManualLoginRequired(Exception):
66
pass
77

8+
89
class OTPRequiredException(Exception):
910
pass
1011

12+
1113
class UnexpectedException(Exception):
1214
pass
1315

16+
1417
class WSApiException(Exception):
1518
def __init__(self, message: str, response=None):
1619
"""
@@ -26,5 +29,6 @@ def __init__(self, message: str, response=None):
2629
def __str__(self):
2730
return f"{super().__str__()}; Response: {self.response}"
2831

32+
2933
class LoginFailedException(WSApiException):
3034
pass

ws_api/session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def __init__(self):
1818
self.refresh_token = None
1919

2020

21-
2221
class WSAPISession(OAuthSession):
2322
"""
2423
A class representing a WSAPI session, extending OAuthSession.

0 commit comments

Comments
 (0)