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

Cleanup root and make minify optional #312

Merged
merged 5 commits into from
Oct 31, 2023
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
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
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