Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: executablebooks/sphinx-external-toc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8f4c217254bb72f3a81a67a0adc899d3a50874f4
Choose a base ref
..
head repository: executablebooks/sphinx-external-toc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 431ab50d7c37634add1af31bffda494219119b4b
Choose a head ref
Showing with 11 additions and 20 deletions.
  1. +6 −15 .pre-commit-config.yaml
  2. +4 −4 pyproject.toml
  3. +1 −1 sphinx_external_toc/__init__.py
21 changes: 6 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -18,23 +18,14 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/pycqa/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
hooks:
- id: isort

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

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear~=22.7]
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.0
hooks:
- id: mypy
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ Documentation = "https://sphinx-external-toc.readthedocs.io"
code_style = ["pre-commit>=2.12"]
rtd = [
"myst-parser>=1.0.0",
"sphinx-book-theme>=0.0.36",
"sphinx-book-theme>=1.0.0",
]
testing = [
"coverage",
@@ -71,6 +71,6 @@ strict_equality = true
module = ["docutils.*", "yaml.*"]
ignore_missing_imports = true

[tool.isort]
profile = "black"
src_paths = ["sphinx_external_toc", "tests"]

[tool.ruff.lint.isort]
force-sort-within-sections = true
2 changes: 1 addition & 1 deletion sphinx_external_toc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""A sphinx extension that allows the project toctree to be defined in a single file."""

__version__ = "1.0.0rc0"
__version__ = "1.0.0"


from typing import TYPE_CHECKING