diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cb79c78d..1ec82645 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,12 +21,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.9] + python-version: [3.11] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} cache: 'pip' diff --git a/papyri-logo 2.png b/assets/papyri-logo 2.png similarity index 100% rename from papyri-logo 2.png rename to assets/papyri-logo 2.png diff --git a/papyri-logo-white-silhouete.png b/assets/papyri-logo-white-silhouete.png similarity index 100% rename from papyri-logo-white-silhouete.png rename to assets/papyri-logo-white-silhouete.png diff --git a/papyri/crosslink.py b/papyri/crosslink.py index 15865ef1..fe11e5bf 100644 --- a/papyri/crosslink.py +++ b/papyri/crosslink.py @@ -429,7 +429,7 @@ def relink(self) -> None: known_refs, _ = find_all_refs(gstore) aliases: Dict[str, str] = {} for key in gstore.glob((None, None, "meta", "aliases.cbor")): - aliases.update(cbor2.loads(gstore.get(key))) + aliases.update(cbor2.loads(gstore.get(key))) # type: ignore [call-overload] rev_aliases = {Cannonical(v): FullQual(k) for k, v in aliases.items()} diff --git a/papyri/render.py b/papyri/render.py index 1e5305ca..66955c59 100644 --- a/papyri/render.py +++ b/papyri/render.py @@ -19,7 +19,11 @@ from quart import send_from_directory, Response, redirect from quart_trio import QuartTrio from rich.logging import RichHandler -import minify_html + +try: + import minify_html +except ModuleNotFoundError: + minify_html = None # type: ignore[assignment] from . import config as default_config from . import take2 diff --git a/pyproject.toml b/pyproject.toml index 493e88d8..4d2421cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,5 +51,5 @@ filterwarnings = "ignore:The module numpy.dual.*:DeprecationWarning" Home = "https://github.com/Carreau/papyri" [tool.mypy] -python_version = 3.10 +python_version = '3.10' ignore_missing_imports = true