diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f63f195a..d36c2aea2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,18 +6,18 @@ repos: exclude: src/furo/theme/.*|docs/(recommendations|reference/admonitions).md - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black language_version: python3.8 - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 + rev: 1.13.0 hooks: - id: blacken-docs - repo: https://github.com/PyCQA/isort - rev: 5.11.4 + rev: 5.12.0 hooks: - id: isort files: \.py$ @@ -41,7 +41,7 @@ repos: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.991 + rev: v1.0.1 hooks: - id: mypy args: [--disallow-untyped-defs, --ignore-missing-imports] @@ -49,7 +49,7 @@ repos: additional_dependencies: [types-docutils] - repo: https://github.com/PyCQA/pydocstyle - rev: 6.1.1 + rev: 6.3.0 hooks: - id: pydocstyle files: src/.*\.py$ diff --git a/docs/kitchen-sink/blocks.rst b/docs/kitchen-sink/blocks.rst index af2795b96..f1fe23225 100644 --- a/docs/kitchen-sink/blocks.rst +++ b/docs/kitchen-sink/blocks.rst @@ -187,6 +187,7 @@ This has an alias of ``code-block``. from typing import Iterator + # This is an example class Math: @staticmethod diff --git a/src/furo/__init__.py b/src/furo/__init__.py index fc957a75b..263a8e8b3 100644 --- a/src/furo/__init__.py +++ b/src/furo/__init__.py @@ -384,7 +384,11 @@ def _overwrite_pygments_css( return assert app.builder - with open(os.path.join(app.builder.outdir, "_static", "pygments.css"), "w", encoding='utf-8') as f: + with open( + os.path.join(app.builder.outdir, "_static", "pygments.css"), + "w", + encoding="utf-8", + ) as f: f.write(get_pygments_stylesheet())