From 7154331eb0718a8efbff89d9b24751c7b73bc31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Wed, 1 May 2024 10:39:36 +0100 Subject: [PATCH] Define paths to lint in mypy configuration --- setup.cfg | 1 + tox.ini | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 680fe3f760..d7b1136577 100644 --- a/setup.cfg +++ b/setup.cfg @@ -141,6 +141,7 @@ per-file-ignores = ./beets/mediafile.py:D [mypy] +files = beets,beetsplug,test allow_any_generics = false # FIXME: Would be better to actually type the libraries (if under our control), # or write our own stubs. For now, silence errors diff --git a/tox.ini b/tox.ini index 22d85a8c7e..bb53dc82ce 100644 --- a/tox.ini +++ b/tox.ini @@ -28,8 +28,7 @@ commands = test: python -bb -m pytest -rs {posargs} cov: coverage run -m pytest -rs {posargs} lint: python -m flake8 {posargs} {[_lint]files} - mypy: mypy -p beets -p beetsplug - mypy: mypy test + mypy: mypy [testenv:docs] basepython = python3.10