We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1043c95 commit b79b8f7Copy full SHA for b79b8f7
1 file changed
hooks/post_gen_project.py
@@ -1,15 +1,15 @@
1
import os
2
import shutil
3
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')
+# Remove docs files if not needed.
+if "{{cookiecutter.include_docs}}" != "y":
+ if os.path.exists("docs"):
+ shutil.rmtree("docs")
+ if os.path.exists("mkdocs.yml"):
+ os.remove("mkdocs.yml")
10
11
-# Remove CLI file if not needed
12
-if '{{cookiecutter.include_cli}}' != 'y':
13
- cli_file = 'src/{{cookiecutter.package_name}}/__main__.py'
+# Remove CLI file if not needed.
+if "{{cookiecutter.include_cli}}" != "y":
+ cli_file = "src/{{cookiecutter.package_name}}/__main__.py"
14
if os.path.exists(cli_file):
15
os.remove(cli_file)
0 commit comments