Skip to content

Commit

Permalink
chg:dev: rename init.py to nina-python-init, delete it after install
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Jun 5, 2024
1 parent 0573c2a commit 32196b6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 0 additions & 1 deletion django/init.py.jinja

This file was deleted.

1 change: 1 addition & 0 deletions django/nina-python-init.py.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends 'python/nina-python-init.py' %}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 2 additions & 0 deletions python/.gitignore.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,6 @@ pyrightconfig.json

# End of https://www.toptal.com/developers/gitignore/api/python

nina-python-init.py

{% block extra %}{% endblock extra %}
File renamed without changes.

0 comments on commit 32196b6

Please sign in to comment.