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

CI: Adjust test matrix to use Python 3.8 and 3.12 #75

Merged
merged 4 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11", "3.12"]
python-version: ["3.8", "3.12"]

env:
OS: ${{ matrix.os }}
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,28 @@ and maintaining [MyST Parser] and [sphinx-design].



[Changelog]: https://github.com/pyveci/sphinx-design-elements/blob/main/CHANGES.md
[Changelog]: https://github.com/tech-writing/sphinx-design-elements/blob/main/CHANGES.md
[Chris Holdgraf]: https://github.com/choldgraf
[Chris Sewell]: https://github.com/chrisjsewell
[development documentation]: https://sphinx-design-elements.readthedocs.io/en/latest/sandbox.html
[Documentation]: https://sphinx-design-elements.readthedocs.io/
[Issues]: https://github.com/pyveci/sphinx-design-elements/issues
[License]: https://github.com/pyveci/sphinx-design-elements/blob/main/LICENSE
[Issues]: https://github.com/tech-writing/sphinx-design-elements/issues
[License]: https://github.com/tech-writing/sphinx-design-elements/blob/main/LICENSE
[MyST Parser]: https://myst-parser.readthedocs.io/
[PyPI]: https://pypi.org/project/sphinx-design-elements/
[Source code]: https://github.com/pyveci/sphinx-design-elements
[Source code]: https://github.com/tech-writing/sphinx-design-elements
[sphinx-design]: https://sphinx-design.readthedocs.io/
[sphinx-design-elements]: https://sphinx-design-elements.readthedocs.io/

[badge-coverage]: https://codecov.io/gh/pyveci/sphinx-design-elements/branch/main/graph/badge.svg
[badge-coverage]: https://codecov.io/gh/tech-writing/sphinx-design-elements/branch/main/graph/badge.svg
[badge-downloads-per-month]: https://pepy.tech/badge/sphinx-design-elements/month
[badge-license]: https://img.shields.io/github/license/pyveci/sphinx-design-elements.svg
[badge-license]: https://img.shields.io/github/license/tech-writing/sphinx-design-elements.svg
[badge-package-version]: https://img.shields.io/pypi/v/sphinx-design-elements.svg
[badge-python-versions]: https://img.shields.io/pypi/pyversions/sphinx-design-elements.svg
[badge-status]: https://img.shields.io/pypi/status/sphinx-design-elements.svg
[badge-tests]: https://github.com/pyveci/sphinx-design-elements/actions/workflows/main.yml/badge.svg
[project-codecov]: https://codecov.io/gh/pyveci/sphinx-design-elements
[badge-tests]: https://github.com/tech-writing/sphinx-design-elements/actions/workflows/main.yml/badge.svg
[project-codecov]: https://codecov.io/gh/tech-writing/sphinx-design-elements
[project-downloads]: https://pepy.tech/project/sphinx-design-elements/
[project-license]: https://github.com/pyveci/sphinx-design-elements/blob/main/LICENSE
[project-license]: https://github.com/tech-writing/sphinx-design-elements/blob/main/LICENSE
[project-pypi]: https://pypi.org/project/sphinx-design-elements
[project-tests]: https://github.com/pyveci/sphinx-design-elements/actions/workflows/main.yml
[project-tests]: https://github.com/tech-writing/sphinx-design-elements/actions/workflows/main.yml
36 changes: 21 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,31 +171,37 @@ markers = [
line-length = 120

lint.select = [
# Pycodestyle
"E",
"W",
# Pyflakes
"F",
# isort
"I",
# Bandit
"S",
# Bugbear
"B",
# Builtins
"A",
# comprehensions
"C4",
# flake8-quotes
"Q",
# eradicate
"ERA",
# flake8-2020
"YTT",
# isort
"I",
# pandas-vet
"PD",
# print
"T20",
# Pycodestyle
"E",
"W",
# Pyflakes
"F",
# return
"RET",
# pyupgrade
# "UP",
# flake8-commas
# "COM",
# future-annotations
# "FA",
# flake8-type-checking
"TCH",
# flake8-unused-arguments
# "ARG",
# flake8-use-pathlib
# "PTH"
]

lint.extend-ignore = [
Expand Down
6 changes: 3 additions & 3 deletions sphinx_design_elements/util/role.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from functools import lru_cache
from typing import Any, Optional, Union
from typing import Any, List, Optional, Tuple, Union

from docutils import nodes
from myst_parser.mocking import MockInliner
Expand Down Expand Up @@ -87,7 +87,7 @@ def get_html_page_title(url: str) -> str:

def parse_block_myst(
self: MockInliner, text: str, lineno: int, memo: Any, parent: nodes.Element, with_container: bool = False
) -> tuple[list[nodes.Node], list[nodes.system_message]]:
) -> Tuple[List[nodes.Node], List[nodes.system_message]]:
"""
Parse the text and return a list of nodes.

Expand All @@ -109,7 +109,7 @@ def parse_block_myst(

def parse_block_rst( # pragma: nocover
self: MockInliner, text: str, lineno: int, memo: Any, parent: nodes.Element
) -> tuple[list[nodes.Node], list[nodes.system_message]]:
) -> Tuple[List[nodes.Node], List[nodes.system_message]]:
"""
mw = MarkdownWrapper()
res = mw.render(text)
Expand Down