Skip to content

Commit 1e94b41

Browse files
feat: readme info
1 parent f01a238 commit 1e94b41

File tree

4 files changed

+84
-68
lines changed

4 files changed

+84
-68
lines changed

.github/settings.yml

Lines changed: 14 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@ repository:
55

66
name: "science-notebook-template"
77

8-
description: "A sciencey project"
8+
description: "🧪 A simple, elegant template for repositories with Jupyter notebooks supporting publications."
99

10-
homepage: "https://github.com/dmyersturnbull/always-initialized"
10+
homepage: "https://github.com/dmyersturnbull/science-notebook-template"
1111

12-
topics: [""]
12+
topics:
13+
[
14+
"template",
15+
"cookiecutter",
16+
"jupyter",
17+
"jupyterlab",
18+
"science",
19+
"notebooks",
20+
]
1321

1422
has_issues: true
15-
has_projects: true
23+
has_projects: false
1624
has_wiki: false
1725
has_downloads: true
1826

@@ -28,45 +36,15 @@ labels:
2836
- name: "a notice ♢"
2937
description: "Bulletin; notice me!"
3038
color: "#ffffff"
31-
- name: "breaking ⚙"
32-
description: "Requires a breaking change"
33-
color: "#000000"
34-
- name: "difficulty: easy"
35-
description: "< 30 min"
36-
color: "#bbddbb"
37-
- name: "difficulty: hard"
38-
description: "difficulty: hard"
39-
color: "#009900"
40-
- name: "difficulty: milestone ⚑"
41-
description: "⚑ A milestone referencing other issues"
42-
color: "#00ff00"
43-
- name: "difficulty: severe"
44-
description: "difficulty: severe"
45-
color: "#006600"
46-
- name: "difficulty: typical"
47-
description: "30 min – 4 hours"
48-
color: "#66bb66"
4939
- name: "kind: bug"
5040
description: "Something isn’t working"
5141
color: "#ee5500"
52-
- name: "kind: cleanup"
53-
description: "Simplify or improve code"
54-
color: "#84b6eb"
5542
- name: "kind: documentation"
5643
description: "A feature needs better documentation"
5744
color: "#006b75"
58-
- name: "kind: enhancement"
59-
description: "Improve functionality"
60-
color: "#2060cc"
61-
- name: "kind: infrastructure"
62-
description: "Modify dependencies, installation, tools, etc."
63-
color: "#333788"
6445
- name: "kind: new feature"
6546
description: "Create something new"
6647
color: "#0000ff"
67-
- name: "kind: performance"
68-
description: "Improve speed or resource usage"
69-
color: "#bbbbdd"
7048
- name: "kind: question"
7149
description: "Further information is requested"
7250
color: "#66317c"
@@ -76,33 +54,18 @@ labels:
7654
- name: "kind: tests"
7755
description: "Write or improve tests"
7856
color: "#d08000"
79-
- name: "priority: critical ⚠"
80-
description: "⚠ Must be done NOW"
81-
color: "#ff0000"
8257
- name: "priority: important"
8358
description: "Should be done soon"
8459
color: "#cc0000"
8560
- name: "priority: minor"
8661
description: "Should do, but not important"
8762
color: "#ddaa99"
88-
- name: "priority: pickmeup"
89-
description: "Too minor to bother"
90-
color: "#f0e9e9"
9163
- name: "priority: wontfix"
9264
description: "Should not be fixed"
9365
color: "#fff9f9"
94-
- name: "status: decision"
95-
description: "Whether to fix / how to fix"
96-
color: "#33aaaa"
9766
- name: "status: duplicate"
9867
description: "This issue or pull request already exists"
9968
color: "#cfd3d7"
100-
- name: "status: fixed ✓"
101-
description: "100% done"
102-
color: "#ddffee"
103-
- name: "status: help needed ◉"
104-
description: "◉ More contributors need to be assigned"
105-
color: "#55cccc"
10669
- name: 'status: in progress \U0001F846'
10770
description: "Assigned and in progress"
10871
color: "#aacfbb"
@@ -112,27 +75,17 @@ labels:
11275
- name: "status: invalid"
11376
description: "Not a real issue"
11477
color: "#e6e6e6"
115-
- name: "status: unresolvable"
116-
description: "Can’t be fixed: The required info doesn’t exist."
117-
color: "#111111"
118-
- name: "status: in upstream"
119-
description: "Can’t fix until a dependency is fixed"
120-
color: "#fefeee"
12178
- name: "sticky note ☆"
12279
description: "☆ Important for reference even after it’s closed"
12380
color: "#ffee00"
12481

12582
branches:
12683
- name: "main"
12784
protection:
128-
required_pull_request_reviews:
129-
required_approving_review_count: 1
130-
dismiss_stale_reviews: true
131-
require_code_owner_reviews: true
13285
required_status_checks:
13386
strict: true
13487
contexts:
135-
- "markdown-link-check"
136-
enforce_admins: true
88+
- "Check Markdown links"
89+
enforce_admins: false
13790
required_linear_history: true
13891
restrictions: null

.github/workflows/checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
name: Static checks
55
on:
66
push:
7+
branches:
8+
- main
79
pull_request:
10+
branches:
11+
- main
812
schedule:
913
- cron: 0 7 * * 6
1014
jobs:

README.md

Lines changed: 65 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,72 @@
11
# Science notebook template
22

3-
[![DOI:10.1007/978-3-319-76207-4_15](https://zenodo.org/badge/DOI/10.1007/978-3-319-76207-4_15.svg)](https://doi.org/10.1007/978-3-319-76207-4_15)
3+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/dmyersturnbull/science-notebook-template/HEAD)
4+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4485186.svg)](https://doi.org/10.5281/zenodo.4485186)
45
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
6+
[![template science_notebook](https://img.shields.io/badge/template-science_notebook-990099.svg)](https://github.com/dmyersturnbull/science-notebook-template)
57

6-
🧪 A simple, elegant template for repositories with Jupyter notebooks supporting publications.
7-
No cookiecutter. Just click _Use as Template_ above.
8+
🧪 A simple, elegant template for repositories supporting publications.
89
Companion to the more sophisticated [Tyrannosaurus](https://github.com/dmyersturnbull/tyrannosaurus), which is for code projects.
10+
No cookiecutter. Just click _Use this Template_ above.
911

10-
Licensed under the terms of the [Apache License 2.0](https://spdx.org/licenses/Apache-2.0.html).
11-
[Contributions and questions](https://github.com/dmyersturnbull/science-notebook-template/issues) are welcome.
12-
Please refer to the [contributing guide](https://github.com/dmyersturnbull/science-notebook-template/blob/main/CONTRIBUTING.md)
12+
### Citing
13+
14+
**Just tell people how to cite your work.**
15+
16+
Please reference the manuscript with this BibTeX:
17+
18+
```
19+
@misc{https://doi.org/10.5281/zenodo.4485186,
20+
doi = {10.5281/ZENODO.4485186},
21+
url = {https://zenodo.org/record/4485186},
22+
author = {Myers-Turnbull, Douglas},
23+
title = {dmyersturnbull/tyrannosaurus: v0.9.1},
24+
publisher = {Zenodo},
25+
year = {2021},
26+
copyright = {Open Access}
27+
}
28+
```
29+
30+
Or APA format:
31+
32+
> Myers-Turnbull, D. (2021). dmyersturnbull/tyrannosaurus: v0.9.1 (v0.9.1) [Computer software]. Zenodo. https://doi.org/10.5281/ZENODO.4485186
33+
34+
### About this repository
35+
36+
**What’s in this repo?**
37+
38+
- Automatic linting of Python, Markdown, config files, etc. using [pre-commit](https://pre-commit.com/)
39+
- Nice default GitHub settings (just install the [Probot settings app](https://github.com/apps/settings) to your repo
40+
- IDE hints via [EditorConfig](https://editorconfig.org/) with good defaults for most languages
41+
- [CodeMeta](https://codemeta.github.io/user-guide/) and [CITATION.cff](https://citation-file-format.github.io/)
42+
- Nice gitignore, dockerignore, changelog, and other misc files
43+
- Example Conda environment file and Vagrantfile
44+
45+
### Steps to reproduce
46+
47+
**How to download needed data, run the code, etc.**
48+
49+
1. Clone this repository as a template and run `pre-commit install`. (`pip install pre-commit`).
50+
2. Install the [Probot settings app](https://github.com/apps/settings).
51+
3. Add to [Binder](https://mybinder.org/) and [Get a DOI](https://guides.github.com/activities/citable-code/) for your repo.
52+
4. Make a local clone of your repo. Modify the readme, changelog, etc. Add your code/notebooks.
53+
5. Commit and push to *main*. (If a linter fails on commit, just re-run. It just meant the linter modified a file.)
54+
55+
### Branch protection rules
56+
57+
This template includes
58+
[branch protection](https://docs.github.com/en/github-ae@latest/github/administering-a-repository/managing-a-branch-protection-rule)
59+
rules for the _main_ branch that disable force-commits, forbid direct pushes,
60+
require status checks to pass, and require a linear history.
61+
You can configure these rules under *Settings → Branches → main*.
62+
The typical workflow is: push changes to a new branch, make a pull request against *main*, and squash–merge or rebase into *main* after the status checks pass.
63+
An *admin*-role user *can* push directly to *main*, but non-*admin* users (with write access) must make pull requests.
64+
65+
### Contributing
66+
67+
**Tell people how to report problems and ask questions.**
68+
69+
The source code in this repository is licensed under the terms of the [Apache License 2.0](https://spdx.org/licenses/Apache-2.0.html).
70+
Contributions and questions are welcome via issues.
71+
For reference, refer to the [contributing guide](https://github.com/dmyersturnbull/science-notebook-template/blob/main/CONTRIBUTING.md)
1372
and [security policy](https://github.com/dmyersturnbull/science-notebook-template/blob/main/SECURITY.md).

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: tyrannosaurus
1+
name: sciencenotebooktemplate
22
channels:
33
- conda-forge
44
dependencies:

0 commit comments

Comments
 (0)