6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-10 00:37:54 +00:00

Merge remote-tracking branch 'origin/master' into nightly

This commit is contained in:
Overhang.IO 2024-03-26 12:26:08 +00:00
commit 86161ffd42
2 changed files with 16 additions and 2 deletions

View File

@ -9,12 +9,15 @@ on:
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.12']
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v3 uses: actions/setup-python@v5
with: with:
python-version: 3.8 python-version: ${{ matrix.python-version }}
cache: 'pip' cache: 'pip'
cache-dependency-path: requirements/dev.txt cache-dependency-path: requirements/dev.txt
- name: Upgrade pip - name: Upgrade pip

View File

@ -51,6 +51,8 @@ nitpick_ignore = [
# python 3.10 # python 3.10
("py:class", "NoneType"), ("py:class", "NoneType"),
("py:class", "click.core.Command"), ("py:class", "click.core.Command"),
# Python 3.12
("py:class", "FilterCallbackFunc"),
] ]
# Resolve type aliases here # Resolve type aliases here
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_type_aliases # https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_type_aliases
@ -58,6 +60,15 @@ autodoc_type_aliases: dict[str, str] = {
# python 3.10 # python 3.10
"T": "tutor.core.hooks.actions.T", "T": "tutor.core.hooks.actions.T",
"T2": "tutor.core.hooks.filters.T2", "T2": "tutor.core.hooks.filters.T2",
# # python 3.12
"L": "tutor.core.hooks.filters.L",
"FilterCallbackFunc": "tutor.core.hooks.filters.FilterCallbackFunc",
# https://stackoverflow.com/questions/73223417/type-aliases-in-type-hints-are-not-preserved
# https://github.com/sphinx-doc/sphinx/issues/10455
# https://github.com/sphinx-doc/sphinx/issues/10785
# https://github.com/emdgroup/baybe/pull/67
"Action": "tutor.core.hooks.actions.Action",
"Filter": "tutor.core.hooks.filters.Filter",
} }