diff --git a/copier.yaml b/copier.yaml index dc4e46f..b141ecf 100644 --- a/copier.yaml +++ b/copier.yaml @@ -98,4 +98,4 @@ _subdirectory: "{{ template_type }}" _tasks: - "python3 -m venv .venv" - - ". .venv/bin/activate && python3 init.py {{ default_branch_name }} {{ template_type }} {% if debug %}--debug{% endif%}" + - ". .venv/bin/activate && python3 nina-python-init.py {{ default_branch_name }} {{ template_type }} {% if debug %}--debug{% endif%} && rm nina-python-init.py" diff --git a/django/init.py.jinja b/django/init.py.jinja deleted file mode 100755 index 843d4e8..0000000 --- a/django/init.py.jinja +++ /dev/null @@ -1 +0,0 @@ -{% extends 'python/init.py' %} diff --git a/django/nina-python-init.py.jinja b/django/nina-python-init.py.jinja new file mode 100755 index 0000000..948c59f --- /dev/null +++ b/django/nina-python-init.py.jinja @@ -0,0 +1 @@ +{% extends 'python/nina-python-init.py' %} diff --git a/pyproject.toml b/pyproject.toml index 401402c..2f0fdd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,4 +7,4 @@ select = ["E", "W", "I", "F", "UP", "S", "B", "A", "COM", "LOG", "PTH", "Q"] [tool.ruff.lint.per-file-ignores] "**/migrations/*.py" = ["E501", "ANN"] -"init.py" = ["S603", "S607"] +"nina-python-init.py" = ["S603", "S607"] diff --git a/python/.gitignore.jinja b/python/.gitignore.jinja index aefab84..036eb35 100644 --- a/python/.gitignore.jinja +++ b/python/.gitignore.jinja @@ -175,4 +175,6 @@ pyrightconfig.json # End of https://www.toptal.com/developers/gitignore/api/python +nina-python-init.py + {% block extra %}{% endblock extra %} diff --git a/python/init.py b/python/nina-python-init.py similarity index 100% rename from python/init.py rename to python/nina-python-init.py