Cleaning things up.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2021-09-16 15:49:46 -04:00
parent 164faf8083
commit 671444a6bb
4 changed files with 439 additions and 304 deletions

View File

@@ -22,7 +22,7 @@ nox.options.sessions = (
)
def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
def activate_virtualenv_in_precommit_hooks(session: Session) -> None: # noqa: CCR001
"""Activate virtualenv in hooks installed by pre-commit.
This function patches git hooks installed by pre-commit to activate the
@@ -66,7 +66,7 @@ def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
{session.bin!r},
os.environ.get("PATH", ""),
))
"""
""",
)
lines.insert(1, header)
@@ -108,7 +108,7 @@ def mypy(session: Session) -> None:
"""Type-check using mypy."""
args = session.posargs or ["src", "tests", "docs/conf.py"]
session.install(".")
session.install("mypy", "pytest")
session.install("mypy", "pytest", "types-all")
session.run("mypy", *args)
if not session.posargs:
session.run("mypy", f"--python-executable={sys.executable}", "noxfile.py")

732
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -22,7 +22,7 @@ classifiers = [
Changelog = "https://gitlab.com/xlorepdarkhelm/plex-playlist/releases"
[tool.poetry.dependencies]
python = "^3.9"
python = ">=3.9,<3.11"
click = "^7.0"
PlexAPI = "^4.5.2"
aioreactive = "^0.15.0"
@@ -32,6 +32,7 @@ gino = "^1.0.1"
asyncpg = "^0.23.0"
uvloop = "^0.15.2"
desert = "^2020.11.18"
numpy = "^1.21.2"
[tool.poetry.dev-dependencies]
typeguard = "^2.12.0"

View File

@@ -5,7 +5,7 @@ from playlist import plex
@click.command()
@click.version_option()
@click.version_option() # type: ignore
def main() -> None:
"""Automated Daily Playlist Generator for Plex Music."""
print(plex.server)