File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 4
4
hooks :
5
5
- id : prettier
6
6
types_or : [css, javascript]
7
+ - repo : https://github.com/astral-sh/ruff-pre-commit
8
+ # Ruff version.
9
+ rev : v0.3.4
10
+ hooks :
11
+ # Run the linter.
12
+ - id : ruff
13
+ args : [ --fix ]
14
+ # Run the formatter.
15
+ - id : ruff-format
7
16
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
3
extensions = [
4
- ' sphinx.ext.mathjax' ,
5
- ' jupyterlite_sphinx' ,
6
- ' myst_parser' ,
4
+ " sphinx.ext.mathjax" ,
5
+ " jupyterlite_sphinx" ,
6
+ " myst_parser" ,
7
7
]
8
8
9
9
html_theme = "pydata_sphinx_theme"
12
12
jupyterlite_contents = "./custom_contents"
13
13
jupyterlite_bind_ipynb_suffix = False
14
14
15
- master_doc = ' index'
15
+ master_doc = " index"
16
16
17
17
# General information about the project.
18
- project = ' JupyterLite Sphinx extension'
18
+ project = " JupyterLite Sphinx extension"
19
19
20
20
# theme configuration
21
21
html_theme_options = {
Original file line number Diff line number Diff line change @@ -410,9 +410,9 @@ def run(self):
410
410
self .content = None
411
411
notebooks_dir = Path (self .env .app .srcdir ) / CONTENT_DIR
412
412
notebook_unique_name = f"{ uuid4 ()} .ipynb" .replace ("-" , "_" )
413
- self .env .temp_data ["generated_notebooks" ][
414
- directive_key
415
- ] = notebook_unique_name
413
+ self .env .temp_data ["generated_notebooks" ][directive_key ] = (
414
+ notebook_unique_name
415
+ )
416
416
# Copy the Notebook for NotebookLite to find
417
417
os .makedirs (notebooks_dir , exist_ok = True )
418
418
with open (notebooks_dir / Path (notebook_unique_name ), "w" ) as f :
You can’t perform that action at this time.
0 commit comments