-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move nitpick config to an exclusive section on the style file
- Loading branch information
1 parent
fd053aa
commit cd64361
Showing
5 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""setup.cfg tests.""" | ||
from tests.helpers import ProjectMock | ||
|
||
|
||
def test_comma_separated_keys_on_style_file(request): | ||
"""Comma separated keys on the style file.""" | ||
project = ( | ||
ProjectMock(request) | ||
.style( | ||
""" | ||
[nitpick.files."setup.cfg"] | ||
comma_separated_values = ["food.eat"] | ||
["setup.cfg".food] | ||
eat = "salt,ham,eggs" | ||
""" | ||
) | ||
.setup_cfg( | ||
""" | ||
[food] | ||
eat = spam,eggs,cheese | ||
""" | ||
) | ||
.lint() | ||
) | ||
project.assert_errors_contain( | ||
""" | ||
NIP322 File: setup.cfg: Missing values in key | ||
[food] | ||
eat = ham,salt | ||
""" | ||
) |