Skip to content

Commit b79b8f7

Browse files
committed
refactor: style post gen hook
1 parent 1043c95 commit b79b8f7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

hooks/post_gen_project.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import os
22
import shutil
33

4-
# Remove docs files if not needed
5-
if '{{cookiecutter.include_docs}}' != 'y':
6-
if os.path.exists('docs'):
7-
shutil.rmtree('docs')
8-
if os.path.exists('mkdocs.yml'):
9-
os.remove('mkdocs.yml')
4+
# Remove docs files if not needed.
5+
if "{{cookiecutter.include_docs}}" != "y":
6+
if os.path.exists("docs"):
7+
shutil.rmtree("docs")
8+
if os.path.exists("mkdocs.yml"):
9+
os.remove("mkdocs.yml")
1010

11-
# Remove CLI file if not needed
12-
if '{{cookiecutter.include_cli}}' != 'y':
13-
cli_file = 'src/{{cookiecutter.package_name}}/__main__.py'
11+
# Remove CLI file if not needed.
12+
if "{{cookiecutter.include_cli}}" != "y":
13+
cli_file = "src/{{cookiecutter.package_name}}/__main__.py"
1414
if os.path.exists(cli_file):
1515
os.remove(cli_file)

0 commit comments

Comments
 (0)