Skip to content

Commit 64fbc75

Browse files
Pre-commit hooks
1 parent fb49b49 commit 64fbc75

26 files changed

+51
-40
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ _build
55
.DS_Store
66
tmp
77
exports
8-
conf.py
8+
conf.py

Diff for: .netlify/state.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"siteId": "f0bcb2b1-3782-4a4b-8611-94f5412b4f76"
3-
}
3+
}

Diff for: .pre-commit-config.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/psf/black
9+
rev: 22.10.0
10+
hooks:
11+
- id: black

Diff for: LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ Section 8 – Interpretation.
9292
For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
9393
To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
9494
No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
95-
Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
95+
Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tmp/exports/book-complete.tex: $(wildcard *.md) _toc.yml assemble_onepager.py tm
88
tmp:
99
mkdir tmp
1010

11-
develop:
11+
develop:
1212
jupyter-book config sphinx . > conf.py
1313
sphinx-autobuild . _build/html -b html
1414

Diff for: TODO.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Some questions you might consider:
1414

1515
1. Was the advice consistent with what you consider best practices? If not, how so?
1616
1. Were some critical subjects not covered by this book?
17-
1. Was the narrative cohesive?
17+
1. Was the narrative cohesive?
1818
1. Were some subjects treated too superficially? Were some subjects treated with too much detail? How was the pacing overall?
1919
1. Was the level appropriate for the target audience (2nd and 3rd year grad students focused on computational subjects)? If not, how so?
2020
1. Did you feel that illustrations were appropriate? Where do you feel more illustrations would be helpful to the narrative?

Diff for: _config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ sphinx:
4848
config:
4949
ogp_site_url: "https://goodresearch.dev/"
5050
ogp_image: "https://goodresearch.dev/_images/unicorn.png"
51-
ogp_description_length: 200
51+
ogp_description_length: 200

Diff for: _static/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg

+1-1
Loading

Diff for: _static/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg

+1-1
Loading

Diff for: _static/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg

+1-1
Loading

Diff for: _static/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg

+1-1
Loading

Diff for: _static/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg

+1-1
Loading

Diff for: _toc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ parts:
1919
chapters:
2020
- file: cka
2121
- file: tools
22-
- file: acknowledgements
22+
- file: acknowledgements

Diff for: acknowledgements.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ This book was inspired by many other long-form books, papers and tutorials. Chec
2222
- Greg Wilson et al. [Good enough practices in scientific computing](https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1005510)
2323
- The CodeRefinery Community. [Materials from CodeRefinery](https://coderefinery.org/)
2424

25-
This book was generated by [jupyterbook](https://jupyterbook.org/), which builds on [Sphinx](https://www.sphinx-doc.org). The stylesheet is an adaptation of [`tufte.css`](https://edwardtufte.github.io/tufte-css/). The unicorn logo is from [twemoji](https://github.com/twitter/twemoji), released under a CC-BY 4.0 license. The PDF version of this book was generated via [CurveNote](https://curvenote.com).
25+
This book was generated by [jupyterbook](https://jupyterbook.org/), which builds on [Sphinx](https://www.sphinx-doc.org). The stylesheet is an adaptation of [`tufte.css`](https://edwardtufte.github.io/tufte-css/). The unicorn logo is from [twemoji](https://github.com/twitter/twemoji), released under a CC-BY 4.0 license. The PDF version of this book was generated via [CurveNote](https://curvenote.com).

Diff for: assemble_onepager.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
\usepackage{listings}
3838
\lstdefinestyle{mystyle}{
3939
basicstyle=\ttfamily\footnotesize,
40-
breakatwhitespace=false,
41-
breaklines=true,
40+
breakatwhitespace=false,
41+
breaklines=true,
4242
captionpos=b,
4343
frame=tB,
4444
aboveskip=16pt,
4545
belowskip=16pt,
46-
keepspaces=true,
47-
showspaces=false,
46+
keepspaces=true,
47+
showspaces=false,
4848
showstringspaces=false,
49-
showtabs=false,
49+
showtabs=false,
5050
tabsize=2
5151
}
5252

Diff for: assets/images/concepts.svg

+1-1
Loading

Diff for: cka.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ def _get_one():
257257
return X, Y
258258

259259
def _get_multi():
260-
X = (np.cos(.1 * np.pi * np.arange(10).reshape((-1, 1)) *
260+
X = (np.cos(.1 * np.pi * np.arange(10).reshape((-1, 1)) *
261261
np.linspace(.5, 1.5, num=3).reshape((1, -1))))
262-
Y = (np.cos(.5 + .07 * np.pi * np.arange(10).reshape((-1, 1)) *
262+
Y = (np.cos(.5 + .07 * np.pi * np.arange(10).reshape((-1, 1)) *
263263
np.linspace(.7, 1.3, num=4).reshape((1, -1))))
264264
return X, Y
265265

Diff for: figures/Design_by_contract.svg

+1-1
Loading

Diff for: front-print.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ It me!
5151

5252
## About the print edition
5353

54-
If you're reading this, congratulations! You're reading the bespoke, artisanal, small-batch print edition. A few folks have asked me for a print edition, and I was happy to oblige. It's an experiment that I hope to expand in the coming years. It was made possible by last-minute feature additions in CurveNote, the wonderful new project that aims to make MyST Markdown the standard for publishing scientific articles and books.
54+
If you're reading this, congratulations! You're reading the bespoke, artisanal, small-batch print edition. A few folks have asked me for a print edition, and I was happy to oblige. It's an experiment that I hope to expand in the coming years. It was made possible by last-minute feature additions in CurveNote, the wonderful new project that aims to make MyST Markdown the standard for publishing scientific articles and books.

Diff for: index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ Patrick J Mineault & The Good Research Code Handbook Community (2021). _The Good
5353

5454
## Contact me
5555

56-
I help businesses and labs implement the practices outlined in this book through my consulting firm, [xcorr consulting](https://xcorr.dev). Please get in touch at [[email protected]](mailto:[email protected]) to find out how we can work together. I'm also available for speaking engagements and collabs – reach out to the same address for that.
56+
I help businesses and labs implement the practices outlined in this book through my consulting firm, [xcorr consulting](https://xcorr.dev). Please get in touch at [[email protected]](mailto:[email protected]) to find out how we can work together. I'm also available for speaking engagements and collabs – reach out to the same address for that.
5757

5858
<a href="https://github.com/patrickmineault/codebook/issues">Issues with the handbook can be reported on Github</a>. <a href='https://twitter.com/patrickmineault'>I'm also active on Twitter</a>.

Diff for: netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
framework = "#static"
33
targetPort = 3998
44
port = 9000 # The port that the netlify dev will be accessible on
5-
publish = "_build/html" # The path to your static content folder
5+
publish = "_build/html" # The path to your static content folder

0 commit comments

Comments
 (0)