|
1 | 1 | #!/bin/env python3
|
2 | 2 | from subprocess import run
|
| 3 | +{% if not cookiecutter._render_devdocs %} |
3 | 4 | from pathlib import Path
|
4 | 5 |
|
5 | 6 | # Post processing
|
6 |
| -{% if not cookiecutter._render_devdocs %} |
7 | 7 | Path("docs/template_usage.md").unlink()
|
8 | 8 | {% endif %}
|
9 | 9 |
|
|
14 | 14 | # The following output was generated using rich
|
15 | 15 | # The formatted output is included here directly, because I don't want
|
16 | 16 | # rich as another dependency for initalizing the repo.
|
17 |
| -# See .make_rich_output.py for more details. |
| 17 | +# Regenerate using `cd scripts; hatch run python -m scverse_template_scripts.make_rich_output` |
18 | 18 | print("""
|
19 | 19 |
|
20 | 20 |
|
21 | 21 |
|
22 | 22 |
|
23 |
| -╔══════════════════════════════════════════════════════════════════════╗ |
24 |
| -║ [1mSet-up online services[0m ║ |
25 |
| -╚══════════════════════════════════════════════════════════════════════╝ |
| 23 | +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ |
| 24 | +┃ \x1b[1mSet-up online services\x1b[0m ┃ |
| 25 | +┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ |
26 | 26 |
|
27 |
| -[1mYour repository is now ready. However, to use all features of the [0m |
28 |
| -[1mtemplate you will need to set up the following online services.[0m Clicking |
| 27 | +\x1b[1mYour repository is now ready.\x1b[0m\x1b[1m \x1b[0m\x1b[1mHowever, to use all features of the \x1b[0m |
| 28 | +\x1b[1mtemplate you will need to set up the following online services.\x1b[0m Clicking |
29 | 29 | on the links will take you to the respective sections of the developer
|
30 | 30 | documentation. The developer documentation is also shipped as part of
|
31 | 31 | the template in docs/developer_docs.md.
|
32 | 32 |
|
33 |
| -[1;33m 1 [0m]8;id=633754;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#pre-commit-checks\[94mpre-commit.ci[0m]8;;\ to check for inconsistencies and to enforce a code |
34 |
| -[1;33m [0mstyle |
35 |
| -[1;33m 2 [0m]8;id=858259;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#documentation-on-readthedocs\[94mreadthedocs.org[0m]8;;\ to build and host documentation |
36 |
| -[1;33m 3 [0m]8;id=497293;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#coverage-tests-with-codecov\[94mcodecov[0m]8;;\ to generate test coverage reports |
| 33 | +\x1b[1;33m 1 \x1b[0m\x1b]8;id=994867;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#pre-commit-checks\x1b\\\x1b[4;34mpre-commit.ci\x1b[0m\x1b]8;;\x1b\\ to check for inconsistencies and to enforce a code |
| 34 | +\x1b[1;33m \x1b[0mstyle |
| 35 | +\x1b[1;33m 2 \x1b[0m\x1b]8;id=697682;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#documentation-on-readthedocs\x1b\\\x1b[4;34mreadthedocs.org\x1b[0m\x1b]8;;\x1b\\ to build and host documentation |
| 36 | +\x1b[1;33m 3 \x1b[0m\x1b]8;id=723197;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#coverage-tests-with-codecov\x1b\\\x1b[4;34mcodecov\x1b[0m\x1b]8;;\x1b\\ to generate test coverage reports |
37 | 37 |
|
38 | 38 | All CI checks should pass, you are ready to start developing your new
|
39 | 39 | tool!
|
40 | 40 |
|
41 |
| -╔══════════════════════════════════════════════════════════════════════╗ |
42 |
| -║ [1mInstall the package[0m ║ |
43 |
| -╚══════════════════════════════════════════════════════════════════════╝ |
| 41 | +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ |
| 42 | +┃ \x1b[1mInstall the package\x1b[0m ┃ |
| 43 | +┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ |
44 | 44 |
|
45 | 45 | To run tests or build the documentation locally, you need to install
|
46 | 46 | your package and its dependencies. You can do so with
|
47 | 47 |
|
48 |
| -[97;40mpip[0m[97;40m [0m[97;40minstall[0m[97;40m [0m[93;40m".[test,dev,doc]"[0m[40m [0m |
| 48 | +\x1b[40m \x1b[0m |
| 49 | +\x1b[40m \x1b[0m\x1b[97;40mpip\x1b[0m\x1b[97;40m \x1b[0m\x1b[97;40minstall\x1b[0m\x1b[97;40m \x1b[0m\x1b[93;40m".[test,dev,doc]"\x1b[0m\x1b[40m \x1b[0m\x1b[40m \x1b[0m |
| 50 | +\x1b[40m \x1b[0m |
49 | 51 |
|
50 |
| -╔══════════════════════════════════════════════════════════════════════╗ |
51 |
| -║ [1mCustomizations[0m ║ |
52 |
| -╚══════════════════════════════════════════════════════════════════════╝ |
| 52 | +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ |
| 53 | +┃ \x1b[1mCustomizations\x1b[0m ┃ |
| 54 | +┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ |
53 | 55 |
|
54 |
| -Further instructions on using this template can be found in the ]8;id=447180;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html\[94mdev docs[0m]8;;\ |
55 |
| -]8;id=447180;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html\[94mincluded in the project[0m]8;;\. |
| 56 | +Further instructions on using this template can be found in the \x1b]8;id=736137;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html\x1b\\\x1b[4;34mdev docs\x1b[0m\x1b]8;;\x1b\\ |
| 57 | +\x1b]8;id=736137;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html\x1b\\\x1b[4;34mincluded in the project\x1b[0m\x1b]8;;\x1b\\. |
56 | 58 |
|
57 |
| -╔══════════════════════════════════════════════════════════════════════╗ |
58 |
| -║ [1mCommittment[0m ║ |
59 |
| -╚══════════════════════════════════════════════════════════════════════╝ |
| 59 | +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ |
| 60 | +┃ \x1b[1mCommitment\x1b[0m ┃ |
| 61 | +┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ |
60 | 62 |
|
61 | 63 | We expect developers of scverse ecosystem packages to
|
62 | 64 |
|
63 |
| -[1;33m • [0m]8;id=169559;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#writing-tests\[94mwrite unit tests[0m]8;;\ |
64 |
| -[1;33m • [0m]8;id=20647;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#writing-documentation\[94mprovide documentation[0m]8;;\, including tutorials where applicable |
65 |
| -[1;33m • [0msupport users through github and the ]8;id=496112;https://discourse.scverse.org/\[94mscverse discourse[0m]8;;\ |
| 65 | +\x1b[1;33m • \x1b[0m\x1b]8;id=213267;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#writing-tests\x1b\\\x1b[4;34mwrite unit tests\x1b[0m\x1b]8;;\x1b\\ |
| 66 | +\x1b[1;33m • \x1b[0m\x1b]8;id=972096;https://cookiecutter-scverse-instance.readthedocs.io/en/latest/developer_docs.html#writing-documentation\x1b\\\x1b[4;34mprovide documentation\x1b[0m\x1b]8;;\x1b\\, including tutorials where applicable |
| 67 | +\x1b[1;33m • \x1b[0msupport users through github and the \x1b]8;id=997067;https://discourse.scverse.org/\x1b\\\x1b[4;34mscverse discourse\x1b[0m\x1b]8;;\x1b\\ |
66 | 68 |
|
67 | 69 | """)
|
0 commit comments