Skip to content

Commit

Permalink
MAINT: Update pre-commit versions and fix minor bugs in tests (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Dec 14, 2022
1 parent 86430b2 commit 4a34f09
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ exclude: >
(?x)^(
\.vscode/settings\.json|
)$
# Fix the node version to avoid a GLIBC error
# ref: https://stackoverflow.com/questions/71939099/bitbucket-pipeline-error-installing-pre-commit-ts-lint/71940852#71940852
default_language_version:
node: 16.14.2

repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-toml
- id: check-json
Expand All @@ -17,12 +23,12 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8

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

Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Thank you for being interested in contributing to the `sphinx-book-theme`! You
are awesome ✨.

This project follows the Executable Books Project [contribution guidelines](https://executablebooks.org/en/latest/contributing.html).
This project follows the Executable Books Project [contribution guidelines](https://executablebooks.org/en/latest/contribute.html).
It contains information about our conventions around coding style, pull request workflow, commit messages and more.

The rest of these sections contain information about developing the `sphinx-book-theme` specifically.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/special-theme-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ This is some markdown that should be shown at full width.
Here's the Jupyter logo:
![](https://raw.githubusercontent.com/adebar/awesome-jupyter/master/logo.png)
![](https://raw.githubusercontent.com/adebar/awesome-jupyter/master/assets/logo.png)
:::{note}
Here's a full-width admonition!
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ test = [
"pytest~=7.1",
"pytest-cov>=3,<5",
"pytest-regressions>=2.0.1,<2.5.0",
"sphinx_thebe"
"sphinx_thebe",
# 8.7.0 broke the `ipython3` lexer in Sphinx so we want to avoid it
"ipython!=8.7.0",
]

[project.entry-points]
Expand Down

0 comments on commit 4a34f09

Please sign in to comment.