From c75f07a0da6c622d3cd0f5aad0a08edaea360dad 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 8423ee3b82..5f6929d041 100644 --- a/setup.cfg +++ b/setup.cfg @@ -181,6 +181,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 6f303e8722..9ab1ba6136 100644 --- a/tox.ini +++ b/tox.ini @@ -27,8 +27,7 @@ passenv = INTEGRATION_TEST commands = test: python -m pytest {posargs} lint: python -m flake8 {posargs} {[_lint]files} - mypy: mypy -p beets -p beetsplug - mypy: mypy test + mypy: mypy [testenv:docs] basepython = python3.10