Auto-format code with black (#9234)

Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2021-09-20 08:49:19 +02:00 committed by GitHub
parent 8bda39f088
commit 015d439eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -202,11 +202,13 @@ def test_set_pos():
doc[1].pos = VERB doc[1].pos = VERB
assert doc[1].pos_ == "VERB" assert doc[1].pos_ == "VERB"
def test_set_invalid_pos(): def test_set_invalid_pos():
doc = Doc(Vocab(), words=["hello", "world"]) doc = Doc(Vocab(), words=["hello", "world"])
with pytest.raises(ValueError): with pytest.raises(ValueError):
doc[0].pos_ = "blah" doc[0].pos_ = "blah"
def test_tokens_sent(doc): def test_tokens_sent(doc):
"""Test token.sent property""" """Test token.sent property"""
assert len(list(doc.sents)) == 3 assert len(list(doc.sents)) == 3

View File

@ -206,7 +206,9 @@ def wandb_logger(
for field in remove_config_values: for field in remove_config_values:
del config_dot[field] del config_dot[field]
config = util.dot_to_dict(config_dot) config = util.dot_to_dict(config_dot)
run = wandb.init(project=project_name, config=config, entity=entity, reinit=True) run = wandb.init(
project=project_name, config=config, entity=entity, reinit=True
)
if run_name: if run_name:
wandb.run.name = run_name wandb.run.name = run_name