-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add actionlint with shellcheck integration to pre-commit
- Loading branch information
Showing
5 changed files
with
43 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,11 @@ def author_email(request): | |
return getattr(request, "param", "[email protected]") | ||
|
||
|
||
@pytest.fixture | ||
def loaders(copier_yaml, request): | ||
return getattr(request, "param", copier_yaml["loaders"]["choices"]) | ||
|
||
|
||
@pytest.fixture(params=(False,)) | ||
def no_saltext_namespace(request): | ||
return request.param | ||
|
@@ -53,13 +58,21 @@ def source_url(project_name, request): | |
raise ValueError(f"Invalid parameter for source_url: '{request.param}'") | ||
|
||
|
||
@pytest.fixture | ||
def workflows(source_url, request): | ||
default = "org" if "github.com/salt-extensions/" in source_url else "enhanced" | ||
return getattr(request, "param", default) | ||
|
||
|
||
@pytest.fixture(params=((),)) | ||
def answers(author, author_email, no_saltext_namespace, project_name, request): | ||
def answers(author, author_email, loaders, no_saltext_namespace, project_name, workflows, request): | ||
defaults = { | ||
"project_name": project_name, | ||
"author": author, | ||
"author_email": author_email, | ||
"loaders": loaders, | ||
"no_saltext_namespace": no_saltext_namespace, | ||
"workflows": workflows, | ||
} | ||
defaults.update(request.param) | ||
return {k: v for k, v in defaults.items() if v is not None} | ||
|
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