Skip to content

Commit

Permalink
Cleanup root and make minify optional (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored Oct 31, 2023
2 parents 1f193f8 + c090eee commit 847712a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion papyri/crosslink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}

Expand Down
6 changes: 5 additions & 1 deletion papyri/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 847712a

Please sign in to comment.