You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Continuous code quality and code coverage reporting using [Sonarcloud](https://sonarcloud.io/),
21
-
- Automatic creation of [issues]({{directory_name}}/.github/next_steps) with instructions how to pass all GitHub action workflows and integrate with services like Zenodo and Read the Docs,
22
-
- Instructions how to make package [citable]({{directory_name}}/.github/next_steps/02_citation.md)
21
+
- Automatic creation of [issues](template/.github/next_steps) with instructions how to pass all GitHub action workflows and integrate with services like Zenodo and Read the Docs,
22
+
- Instructions how to make package [citable](template/.github/next_steps/02_citation.md)
23
23
- FAIR software recommendation badge,
24
-
- Optional [pre commit hook]({{directory_name}}/README.dev.md#running-linters-locally) to catch lint errors early
24
+
- Optional [pre commit hook](template/README.dev.md#running-linters-locally) to catch lint errors early
| directory_name | my-python-project | Name of the directory that contains the package. Avoid using spaces or uppercase letters for the best experience across operating systems. To get an impression of what will be generated, see the directory tree [below](https://github.com/NLeSC/python-template#step-33-read-about-what-was-just-generated)|
65
-
| package_name | my_python_package | Name of the package. Avoid using spaces, dashes, or uppercase letters for the best experience across operating systems. |
64
+
| package_name | my_python_package | Name of the package. Avoid using spaces, dashes, or uppercase letters for the best experience across operating systems. This also will be used as the github repo name.|
66
65
| package_short_description | Short description of package | The information that you enter here will end up in the README, documentation, license, and pyproject.toml, so it may be a good idea to prepare something in advance. |
67
66
| keyword1 | keyword1 | A term that describes your package. |
68
67
| keyword2 | keyword2 | Another term that describes your package. |
| code_of_conduct_email |yourname@esciencecenter.nl| Email address of the person who should be contacted in case of violations of the Code of Conduct. |
76
75
77
76
Once the project files have been generated, follow the steps outlined in
Copy file name to clipboardExpand all lines: copier.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@ package_name:
6
6
help: Enter the name of the Python package.
7
7
validator: >-
8
8
{% if not (package_name | regex_search('^[a-z][a-z0-9\_]+$')) %}
9
-
package_name must start with a letter, followed one or more letters, digits or underscores all lowercase.
9
+
package_name must start with a letter, followed one or more letters, digits or underscores all lowercase. Avoid using spaces or uppercase letters for the best experience across operating systems.
10
10
{% endif %}
11
11
package_short_description:
12
12
type: str
13
13
default: Short description of package
14
-
#validator: >-
15
-
#{% if '"' in package_short_description %}
16
-
#package_short_description must not contain unescaped double quotes. Use \\" for double quotes.
17
-
# {% endif %}
14
+
validator: >-
15
+
{% if (package_short_description | regex_replace ('"', '\\\\"')|regex_replace ("'", "\\\\'")%}
16
+
package_short_description must not contain unescaped double or single quotes.
Copy file name to clipboardExpand all lines: template/.github/next_steps/01_sonarcloud_integration.md.jinja
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ In order to configure Sonarcloud analysis [GitHub Action workflow]({{repository_
10
10
1. login with your GitHub account
11
11
1. add Sonarcloud organization or reuse existing one
12
12
1. set up a repository
13
-
1. go to [new code definition administration page](https://sonarcloud.io/project/new_code?id={{github_organization}}_{{directory_name}}) and select `Number of days` option
13
+
1. go to [new code definition administration page](https://sonarcloud.io/project/new_code?id={{github_organization}}_{{package_name}}) and select `Number of days` option
14
14
1. To be able to run the analysis:
15
15
1. a token must be created at [Sonarcloud account](https://sonarcloud.io/account/security/)
16
-
1. the created token must be added as `SONAR_TOKEN` to [secrets on GitHub](https://github.com/{{github_organization}}/{{directory_name}}/settings/secrets/actions)
16
+
1. the created token must be added as `SONAR_TOKEN` to [secrets on GitHub](https://github.com/{{github_organization}}/{{package_name}}/settings/secrets/actions)
Copy file name to clipboardExpand all lines: template/next_steps.md.jinja
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ Alternatively, you can also use a personal access token, see
13
13
[Creating a personal access token](https://docs.github.com/en/github-ae@latest/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token). If you choose this option, below you will have to replace
14
14
`git@github.com:` by `https://github.com/`.
15
15
16
+
Inside of the generated directory, run the following commands:
0 commit comments