Skip to content

Commit

Permalink
Merge branch 'main' into dont-ignore-c-constructs
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Oct 19, 2024
2 parents f603221 + b1bec13 commit 1ff2068
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
matrix:
# when adding new versions, update the one used to test
# friend projects below to the latest one
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
test-set: [base]
include:
- {python-version: "3.13", os: ubuntu-latest, test-set: friend-projects}
exclude:
# TODO Add Windows when regex wheel available for 3.13
- {os: windows-latest, python-version: "3.13"}
- {python-version: "3.13", os: windows-latest, test-set: friend-projects}

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ authors = [
{name = "Georg Brandl", email = "[email protected]"},
{name = "Julien Palard", email = "[email protected]"},
]
requires-python = ">= 3.8"
requires-python = ">= 3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
4 changes: 2 additions & 2 deletions sphinxlint/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def check_backtick_before_role(file, lines, options=None):
def check_missing_space_in_hyperlink(file, lines, options=None):
"""Search for hyperlinks missing a space.
Bad: `Link text<https://example.com>_`
Good: `Link text <https://example.com>_`
Bad: `Link text<https://example.com>`_
Good: `Link text <https://example.com>`_
"""
for lno, line in enumerate(lines, start=1):
if "`" not in line:
Expand Down
4 changes: 2 additions & 2 deletions sphinxlint/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- All compiled regexes are suffixed by _RE
"""

from functools import lru_cache
from functools import cache

import regex as re

Expand Down Expand Up @@ -156,7 +156,7 @@
UNICODE_ALLOWED_AFTER_INLINE_MARKUP = r"\p{Pe}\p{Pi}\p{Pf}\p{Pd}\p{Po}"


@lru_cache(maxsize=None)
@cache
def inline_markup_gen(start_string, end_string, extra_allowed_before=""):
"""Generate a regex matching an inline markup.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires =
tox>=4.2
env_list =
lint
py{py3, 313, 312, 311, 310, 39, 38}
py{py3, 313, 312, 311, 310, 39}

[testenv]
extras =
Expand Down

0 comments on commit 1ff2068

Please sign in to comment.