Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #2085

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exclude: >
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
Expand All @@ -37,14 +37,14 @@ repos:
entry: python scripts/check_doc_requirements.py

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.4.8
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
# Allow inline ignores for spelling lines
Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Therefore, here we allow for the directory to be directly supplied,
via an environmental variable.
"""

import shutil
from pathlib import Path
from uuid import uuid4
Expand Down
1 change: 1 addition & 0 deletions jupyter_book/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

IMPORTANT: Top-level imports should be minimised here, to improve CLI responsiveness
"""

import os
import os.path as op
import shutil as sh
Expand Down
1 change: 1 addition & 0 deletions jupyter_book/cli/pluggable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plugin aware click command Group."""

from typing import Any, Iterable, List, Set

import click
Expand Down
7 changes: 4 additions & 3 deletions jupyter_book/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A small sphinx extension to let you configure a site with YAML metadata."""

import json
import sys
from functools import lru_cache
Expand Down Expand Up @@ -199,9 +200,9 @@ def get_final_config(
color="orange",
print_func=print,
)
sphinx_config["html"].setdefault("analytics", {})[
"google_analytics_id"
] = google_analytics_id
sphinx_config["html"].setdefault("analytics", {})["google_analytics_id"] = (
google_analytics_id
)

# finally merge in CLI configuration
_recursive_update(sphinx_config, cli_config or {})
Expand Down
1 change: 1 addition & 0 deletions jupyter_book/pdf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Commands to facilitate conversion to PDF."""

import asyncio
import os
from copy import copy
Expand Down
1 change: 1 addition & 0 deletions jupyter_book/sphinx.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tools for interacting with Sphinx."""

import os.path as op
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/test_clean.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Testing clean functionality of the CLI."""

import os

from click.testing import CliRunner
Expand Down