Skip to content

Commit 67bac6f

Browse files
committed
Revert "Remove j2 extensions from plate files (#4)"
This reverts commit d134c74.
1 parent f701721 commit 67bac6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+9
-3
lines changed
File renamed without changes.

boil/plates/python_script/README.md

boil/plates/python_script/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VARS = [{"name": "script_name", "required": True, "example": "fancy_script"}]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main():
2+
pass
3+
4+
5+
if __name__ == '__main__':
6+
main()

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ build-backend = 'setuptools.build_meta'
55
[tool.black]
66
target-version = ['py39']
77
line-length = 88
8-
exclude = ['boil/plates']

setup.cfg

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ exclude =
88
doc
99
*.egg,
1010
build
11-
boil/plates
1211
max-line-length = 88
1312
select = C,E,F,W,B,B950
1413
extend-ignore = E203, E501
@@ -18,4 +17,3 @@ testpaths = tests
1817

1918
[coverage:run]
2019
source = boil
21-
omit = boil/plates/*

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def run(self):
7272
],
7373
"boil.plates": [
7474
"python_package = boil.plates.python_package",
75+
"python_script = boil.plates.python_script",
7576
"ansible_role = boil.plates.ansible_role",
7677
"bash_script = boil.plates.bash_script",
7778
"license = boil.plates.license",

tests/integration/test_commands.py

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test_search_plates(self, mock_stdout):
4141
command.execute(args)
4242
result = mock_stdout.getvalue()
4343
self.assertIn("python_package", result)
44+
self.assertIn("python_script", result)
4445
self.assertNotIn("ansible_role", result)
4546

4647
@patch("sys.stdout", new_callable=StringIO)

0 commit comments

Comments
 (0)