File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [flake8]
2+ indent-size = 2
Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ python = "^3.8"
1313[tool .poetry .dev-dependencies ]
1414isort = " ^5.8.0"
1515flake8 = " ^3.9.2"
16- black = " ^21.5b1"
16+ 2black = { git = " https://github.com/BD103/2black" , branch = " main" }
17+
18+ [tool .isort ]
19+ profile = " black"
20+ multi_line_output = 3
1721
1822[build-system ]
1923requires = [" poetry>=0.12" ]
2024build-backend = " poetry.masonry.api"
2125
22- [tool .isort ]
23- profile = " black"
24- multi_line_output = 3
Original file line number Diff line number Diff line change 55
66
77class ReplAPI (object ):
8- """Base class for all ReplAPI-it features.
8+ """Base class for all ReplAPI-it features.
99 Everything should be accessed through this class.
1010 Do not import anything else unless you know what you are doing."""
1111
12- def __init__ (self , initVars : dict = {}):
13- self .vars = {** defaultInitVars , ** initVars }
12+ def __init__ (self , initVars : dict = {}):
13+ self .vars = {** defaultInitVars , ** initVars }
1414
15- self .User = _User
16- self .Post = _Post
15+ self .User = _User
16+ self .Post = _Post
Original file line number Diff line number Diff line change 11class _Post (object ):
2- def __init__ (self , num : int ):
3- """Get post data."""
4- self .num = num
2+ def __init__ (self , num : int ):
3+ """Get post data."""
4+ self .num = num
55
6- def postDataFull (self ) -> dict :
7- # Grab post data, return dict
8- example = {"title" : "Some title here" }
9- return example
6+ def postDataFull (self ) -> dict :
7+ # Grab post data, return dict
8+ example = {"title" : "Some title here" }
9+ return example
Original file line number Diff line number Diff line change 11class _User (object ):
2- def __init__ (self , username : str ):
3- """Get user data."""
4- self .username = username
2+ def __init__ (self , username : str ):
3+ """Get user data."""
4+ self .username = username
55
6- def userGraphQLDataFull (self ) -> dict :
7- # Grab data, return info
8- example = {"karma" : 102 }
9- return example
6+ def userGraphQLDataFull (self ) -> dict :
7+ # Grab data, return info
8+ example = {"karma" : 102 }
9+ return example
You can’t perform that action at this time.
0 commit comments