Skip to content

Commit

Permalink
black update
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewyates committed Apr 6, 2023
1 parent 53f34c4 commit 789288c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion capreolus/reranker/POSITDRMM.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def __init__(self, extractor, pipeline_config):
self.hidden = self.init_hidden()

def init_hidden(self):

return (
Variable(torch.zeros(4, self.batch_size, self.lstm_hidden_dim).to(device)),
Variable(torch.zeros(4, self.batch_size, self.lstm_hidden_dim).to(device)),
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
sys.path.insert(0, os.path.abspath("../"))
assert os.path.exists(os.path.abspath("../capreolus"))


# from https://packaging.python.org/guides/single-sourcing-package-version/
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.black]
line-length = 130
target_version = ['py37']
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def run(self):
with open("README.md", "r") as fh:
long_description = fh.read()


# from https://packaging.python.org/guides/single-sourcing-package-version/
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
Expand Down

0 comments on commit 789288c

Please sign in to comment.