Commit 783d68b
committed
refactor: remove the __name__ check from __main__.py
https://docs.python.org/3/library/__main__.html1 parent 69c5c6b commit 783d68b
5 files changed
Lines changed: 5 additions & 8 deletions
File tree
- changelog.d
- template/src/{{ package_name }}
- {% if cli == 'argparse' %}.{% endif %}
- {% if cli == 'click' %}.{% endif %}
- {% if cli == 'cyclopts' %}.{% endif %}
- {% if cli == 'typer' %}.{% endif %}
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
0 commit comments