Skip to content

Commit da8de06

Browse files
author
BD103
committed
feat(workflow): use 2black instead
1 parent 27cf28b commit da8de06

6 files changed

Lines changed: 46 additions & 41 deletions

File tree

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
indent-size = 2

poetry.lock

Lines changed: 20 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ python = "^3.8"
1313
[tool.poetry.dev-dependencies]
1414
isort = "^5.8.0"
1515
flake8 = "^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]
1923
requires = ["poetry>=0.12"]
2024
build-backend = "poetry.masonry.api"
2125

22-
[tool.isort]
23-
profile = "black"
24-
multi_line_output = 3

replapi_it/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66

77
class 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

replapi_it/post.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class _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

replapi_it/user.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class _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

0 commit comments

Comments
 (0)