Skip to content

Commit

Permalink
Update with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-rose committed Jun 15, 2023
1 parent 35372da commit fdee25b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: double-quote-string-fixer

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black

Expand All @@ -28,8 +28,9 @@ repos:
rev: v2.2.0
hooks:
- id: seed-isort-config

- repo: https://github.com/PyCQA/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort

Expand All @@ -40,7 +41,7 @@ repos:
additional_dependencies: [[email protected]]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.1
rev: 1.7.0
hooks:
- id: nbqa-black
additional_dependencies: [black]
Expand Down
16 changes: 8 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ tags:
- samplepackage

execute:
# To execute notebooks via a binder instead, replace 'cache' with 'binder'
# To execute notebooks via a Binder instead, replace 'cache' with 'binder'
execute_notebooks: cache
timeout: 600
allow_errors: False # cells with expected failures must set the `raises-exception` cell tag
allow_errors: False # cells with expected failures must set the `raises-exception` cell tag

# Add a few extensions to help with parsing content
parse:
myst_enable_extensions: # default extensions to enable in the myst parser. See https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
myst_enable_extensions: # default extensions to enable in the myst parser. See https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
- amsmath
- colon_fence
- deflist
Expand All @@ -36,16 +36,16 @@ parse:

sphinx:
config:
linkcheck_ignore: ["https://doi.org/*",] # don't run link checker on DOI links since they are immutable
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors (this flag is ignored if building on binder)
linkcheck_ignore: ["https://doi.org/*"] # don't run link checker on DOI links since they are immutable
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors (this flag is ignored if building on binder)
html_favicon: notebooks/images/icons/favicon.ico
html_last_updated_fmt: '%-d %B %Y'
html_last_updated_fmt: "%-d %B %Y"
html_theme: sphinx_pythia_theme
html_permalinks_icon: '<i class="fas fa-link"></i>'
html_theme_options:
home_page_in_toc: true
repository_url: https://github.com/ProjectPythia/cookbook-template/ # Online location of your book
repository_branch: main # Which branch of the repository should be used when creating links (optional)
repository_url: https://github.com/ProjectPythia/cookbook-template/ # Online location of your book
repository_branch: main # Which branch of the repository should be used when creating links (optional)
use_issues_button: true
use_repository_button: true
use_edit_page_button: true
Expand Down

0 comments on commit fdee25b

Please sign in to comment.