From aa0886434c39cc206da4090a0a7baff8bb11dc91 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Thu, 5 Oct 2023 17:10:16 +0200 Subject: [PATCH 1/5] move logo, clean root --- papyri-logo 2.png => assets/papyri-logo 2.png | Bin .../papyri-logo-white-silhouete.png | Bin 2 files changed, 0 insertions(+), 0 deletions(-) rename papyri-logo 2.png => assets/papyri-logo 2.png (100%) rename papyri-logo-white-silhouete.png => assets/papyri-logo-white-silhouete.png (100%) 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 From 6f6fd63cfe71f7d89b5385c430601c1b499e0436 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Thu, 5 Oct 2023 17:11:46 +0200 Subject: [PATCH 2/5] make minify_html optional --- papyri/render.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/papyri/render.py b/papyri/render.py index 1e5305ca..e62484a8 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 from . import config as default_config from . import take2 From 70c2f02ae615bf1599994a3be3e42acdfdaf6594 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 31 Oct 2023 15:58:12 +0100 Subject: [PATCH 3/5] fix lints ? --- papyri/render.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/papyri/render.py b/papyri/render.py index e62484a8..66955c59 100644 --- a/papyri/render.py +++ b/papyri/render.py @@ -23,7 +23,7 @@ try: import minify_html except ModuleNotFoundError: - minify_html = None + 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 From 12024d3c761d4fcb003cf301e3028122a3122d32 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 31 Oct 2023 16:05:56 +0100 Subject: [PATCH 4/5] bump pythno --- .github/workflows/lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' From c090eee276f0faa0a7a1bdc54c66ecc8af56371c Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 31 Oct 2023 16:11:44 +0100 Subject: [PATCH 5/5] ignore type --- papyri/crosslink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}