diff --git a/make/project.conf b/make/project.conf index 9641d6d5..4827ad7e 100644 --- a/make/project.conf +++ b/make/project.conf @@ -37,6 +37,7 @@ build = realpath [pkg.requires.suse] run = python3 release = rpmbuild, python3-base +lint = python3-ruff, python3-pyright [pkg.requires.debian] run = python3 diff --git a/make/topdir.mk b/make/topdir.mk index 3d51c7fa..bfd71b90 100644 --- a/make/topdir.mk +++ b/make/topdir.mk @@ -303,7 +303,7 @@ pkg-install-release-deps: $(PKG_MANAGER) install $(shell $(proj_query_cmd) required-os-pkg --quote "build,run,release" $(PROJECT)) pkg-install-testbuild-deps: - $(PKG_MANAGER) install $(shell $(proj_query_cmd) pkg-requires --quote --hide-self --syntax names-only --delimiter " " "build,run,devel,release" $(PROJECT)) + $(PKG_MANAGER) install $(shell $(proj_query_cmd) pkg-requires --quote --hide-self --syntax names-only --delimiter " " "lint,build,run,devel,release" $(PROJECT)) recache-vars: rm -f $(TOPDIR)/make clean-cache cache diff --git a/src/python/jw/pkg/cmds/projects/BaseCmdPkgRelations.py b/src/python/jw/pkg/cmds/projects/BaseCmdPkgRelations.py index 98c42c27..1d01b69a 100644 --- a/src/python/jw/pkg/cmds/projects/BaseCmdPkgRelations.py +++ b/src/python/jw/pkg/cmds/projects/BaseCmdPkgRelations.py @@ -71,7 +71,7 @@ class BaseCmdPkgRelations(Cmd): ) parser.add_argument( 'flavours', - help = 'Dependency flavours (run, build, devel, release), ' + help = 'Dependency flavours (lint, run, build, devel, release), ' 'separated by comma or whitespace' ) parser.add_argument('modules', nargs = '*', help = 'Modules') diff --git a/test/integration/jw_pkg/help/test-expected.txt b/test/integration/jw_pkg/help/test-expected.txt index 0c711ccf..ed24656b 100644 --- a/test/integration/jw_pkg/help/test-expected.txt +++ b/test/integration/jw_pkg/help/test-expected.txt @@ -557,8 +557,8 @@ usage: jw-pkg.py projects pkg-conflicts [-h] [-S [SUBSECTIONS]] Print packages conflicting with a given package positional arguments: - flavours Dependency flavours (run, build, devel, release), - separated by comma or whitespace + flavours Dependency flavours (lint, run, build, devel, + release), separated by comma or whitespace modules Modules (default: None) options: @@ -608,8 +608,8 @@ usage: jw-pkg.py projects pkg-provides [-h] [-S [SUBSECTIONS]] Print packages and capabilities provided by a given package positional arguments: - flavours Dependency flavours (run, build, devel, release), - separated by comma or whitespace + flavours Dependency flavours (lint, run, build, devel, + release), separated by comma or whitespace modules Modules (default: None) options: @@ -660,8 +660,8 @@ usage: jw-pkg.py projects pkg-recommends [-h] [-S [SUBSECTIONS]] Print recommended packages positional arguments: - flavours Dependency flavours (run, build, devel, release), - separated by comma or whitespace + flavours Dependency flavours (lint, run, build, devel, + release), separated by comma or whitespace modules Modules (default: None) options: @@ -711,8 +711,8 @@ usage: jw-pkg.py projects pkg-requires [-h] [-S [SUBSECTIONS]] Print packages required for a given package positional arguments: - flavours Dependency flavours (run, build, devel, release), - separated by comma or whitespace + flavours Dependency flavours (lint, run, build, devel, + release), separated by comma or whitespace modules Modules (default: None) options: diff --git a/test/unit/python/jw/pkg/cmds/secrets/lib/FilesContext/test.py b/test/unit/python/jw/pkg/cmds/secrets/lib/FilesContext/test.py index 11937687..4e8920ef 100644 --- a/test/unit/python/jw/pkg/cmds/secrets/lib/FilesContext/test.py +++ b/test/unit/python/jw/pkg/cmds/secrets/lib/FilesContext/test.py @@ -4,19 +4,15 @@ import asyncio import grp import os import pwd -import sys import tempfile -from typing import TYPE_CHECKING, override +from typing import override from jw.pkg.cmds.secrets.lib.base import Attrs from jw.pkg.cmds.secrets.lib.FilesContext import FilesContext from jw.pkg.lib.ec.Local import Local from jw.pkg.lib.PathFilter import Verdict -if TYPE_CHECKING: - import os - # -- A context whose package space holds only the template, as on a # real host: the output file and the temp are not package files. # If the compile's own file operations honor the filter, the