Skip to content

Commit

Permalink
fix: use None as sentinel value for output option
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jan 8, 2022
1 parent fa21c6e commit 6a19653
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion beet/toolchain/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ProjectConfig(BaseModel):

directory: str = ""
extend: List[str] = Field(default_factory=list)
output: str = ""
output: Optional[str] = None
ignore: List[str] = Field(default_factory=list)
whitelist: Optional[List[str]] = None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"version": "",
"directory": "tests/config_examples/crazy_extend",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down Expand Up @@ -75,7 +75,7 @@
"version": "",
"directory": "tests/config_examples/crazy_extend",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down Expand Up @@ -117,7 +117,7 @@
"version": "",
"directory": "tests/config_examples/crazy_extend/src",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "",
"directory": "tests/config_examples/empty",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "foo",
"directory": "tests/config_examples/extend_everything",
"extend": [],
"output": "",
"output": null,
"ignore": [
"base",
"thing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "",
"directory": "tests/config_examples/load_pack",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "",
"directory": "tests/config_examples/load_with_templates",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "",
"directory": "tests/config_examples/nested",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down Expand Up @@ -38,7 +38,7 @@
"version": "",
"directory": "tests/config_examples/nested",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "",
"directory": "tests/config_examples/whitelist",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": [
"foo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "",
"directory": "tests/config_examples/whitelist_nested",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": [
"foo",
Expand Down Expand Up @@ -43,7 +43,7 @@
"version": "",
"directory": "tests/config_examples/whitelist_nested",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": [
"other"
Expand Down Expand Up @@ -80,7 +80,7 @@
"version": "",
"directory": "tests/config_examples/whitelist_nested",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": null,
"require": [],
Expand Down Expand Up @@ -114,7 +114,7 @@
"version": "",
"directory": "tests/config_examples/whitelist_nested",
"extend": [],
"output": "",
"output": null,
"ignore": [],
"whitelist": [
"foo",
Expand Down

0 comments on commit 6a19653

Please sign in to comment.