Skip to content

Commit 059b39b

Browse files
fsouzarupert
authored andcommitted
Set target_version to set() on the default config (#21)
This happens whenever running pyls_black on a project that doesn't define a config file (there's an early return). Writing a test for this can get tricky, but I could give it a shot.
1 parent 80403a7 commit 059b39b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyls_black/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def load_config(filename: str) -> Dict:
6666
"fast": False,
6767
"pyi": filename.endswith(".pyi"),
6868
"skip_string_normalization": False,
69+
"target_version": set(),
6970
}
7071

7172
root = black.find_project_root((filename,))

0 commit comments

Comments
 (0)