chore(ci): from Rye to uv (#476)

* chore(ci): from Rye to uv

uv is just better for what I need to do, and Rye will eventually be replaced by uv anyway

* chore(ci): add tests' extra

* chore(ci): oops

* fix(ci): some tests

* chore(ci): remove -W error

Because it breaks on the CI, but not locally..
This commit is contained in:
Jérome Eertmans
2024-09-24 17:15:18 +02:00
committed by GitHub
parent 6ad89ecdf6
commit de91ac7b7c
15 changed files with 3591 additions and 927 deletions

View File

@ -313,7 +313,7 @@ class PresentationConfig(BaseModel): # type: ignore[misc]
use_cached: bool = True,
include_reversed: bool = True,
prefix: str = "",
) -> "PresentationConfig":
) -> None:
"""Copy the files to a given directory."""
for slide_config in self.slides:
file = slide_config.file
@ -322,13 +322,8 @@ class PresentationConfig(BaseModel): # type: ignore[misc]
dest = folder / f"{prefix}{file.name}"
rev_dest = folder / f"{prefix}{rev_file.name}"
slide_config.file = dest
slide_config.rev_file = rev_dest
if not use_cached or not dest.exists():
shutil.copy(file, dest)
if include_reversed and (not use_cached or not rev_dest.exists()):
shutil.copy(rev_file, rev_dest)
return self