Skip to content

Commit fed70bc

Browse files
committed
pre-commit fixes
1 parent c1ea5cb commit fed70bc

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
This repo is used for discussion of topics relating to Learn Astropy, but not specific to a single tutorial. Please open an issue to raise a topic. If you would instead like to raise an issue about a specific tutorial, please do so in that tutorial's `tutorial--*` respository. If you would like to contribute a new tutorial, see the [contribution guide](https://learn.astropy.org/contributing/).
44

5-
For developers, this repo also contains scripts and resources used across all tutorials - see the [dev guide](https://github.com/astropy-learn/dev-guide).
5+
For developers, this repo also contains scripts and resources used across all tutorials - see the [dev guide](https://github.com/astropy-learn/dev-guide).

resources/keywords.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ units
1414
time
1515
synphot
1616
dust extinction
17-
modeling
17+
modeling
1818
convolution
1919
gala
2020
vo conesearch
@@ -54,7 +54,7 @@ astrodynamics
5454
stellar photometry
5555
stellar physics
5656
radio astronomy
57-
astrostatistics
57+
astrostatistics
5858
x-ray astronomy
5959
galactic astronomy
6060
galaxy dynamics
@@ -63,5 +63,5 @@ physics
6363
observational astronomy
6464
astrometry
6565
extinction
66-
polarimetry
67-
IR and optical astronomy
66+
polarimetry
67+
IR and optical astronomy

scripts/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ logo: logo.svg
44
execute:
55
execute_notebooks: force
66
repository:
7-
url:
7+
url:
88
branch: main/
99
html:
1010
use_repository_button: true
1111
use_issues_button: true
1212
use_edit_page_button: true
1313
analytics:
1414
google_analytics_id: "G-ZBXC3EFGGJ"
15-
launch_buttons:
15+
launch_buttons:
1616
notebook_interface: jupyterlab
1717
thebe: true
1818
sphinx:

scripts/execute-convert.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os
1+
import os
22
import sys
33

44
slug = sys.argv[1]
@@ -16,24 +16,24 @@
1616
os.system(command)
1717
# build pdf
1818
command = "jb build . --config _config.yaml --toc _toc.yml --builder pdfhtml"
19-
os.system(command)
19+
os.system(command)
2020

2121
# copy build outputs to 'html' dir
22-
command = f"cp -r '_build/html' html"
22+
command = "cp -r '_build/html' html"
2323
os.system(command)
24-
command = f"cp '_build/pdf/book.pdf' html"
24+
command = "cp '_build/pdf/book.pdf' html"
2525
os.system(command)
2626

2727
else:
2828
# build single notebook
2929
command = f"jb build {slug}.ipynb --config _config.yml"
3030
os.system(command)
31-
# build pdf
31+
# build pdf
3232
command = f"jb build {slug}.ipynb --config _config.yml --builder pdfhtml"
3333
os.system(command)
3434

3535
# copy build outputs to 'html' dir
3636
command = f"cp -r '_build/_page/{slug}/html' html"
3737
os.system(command)
3838
command = f"cp '_build/_page/{slug}/pdf/{slug}.pdf' html"
39-
os.system(command)
39+
os.system(command)

scripts/pre-process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
cfg = yaml.dump(cfg, stream=f, default_flow_style=False, sort_keys=False)
2525

2626
# for use by subsequent github actions job
27-
print(meta["slug"])
27+
print(meta["slug"])

scripts/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ jupyter-book
22
pre-commit
33
playwright
44
pre-commit
5-
pyppeteer
5+
pyppeteer

0 commit comments

Comments
 (0)