aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* reformat with black 24Arthur Zamarin2024-01-261-3/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: fix unknown exit checkset during initial config loadArthur Zamarin2023-06-291-1/+3
| | | | | | | | | Similar to previous fix, `--exit`` also can accept checksets which come from args, so we also need to "escape" failures of ExitArgs. Follows: a2358d60680611d7cbe07068440031c3c6e68f31 Resolves: https://github.com/pkgcore/pkgcheck/issues/594 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: fix unknown checkset during initial config loadArthur Zamarin2023-05-111-1/+3
| | | | | | | | | | | | | | | | | | | The config load is performed in multiple stages: 1. parse `--config` path 2. load bundled config 3. load user & system configs 4. parse cmd args (needed for repo and targets) 5. load repo's config 6. parse full cmd args The problem is that the checkset is parsed during stage 4, which means it hasn't loaded the repo's config yet. While a more correct solution would be to parse only needed args during stage 4, it wasn't simple since the targets collect everything, including cmd args. So instead this just patches temporarily to not fail upon unknown checksets. Resolves: https://github.com/pkgcore/pkgcheck/issues/576 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: Replace NOCOLOR by NO_COLORUlrich Müller2023-03-011-1/+1
| | | | | | | | | NO_COLOR is an informal standard that is followed by many programs, see https://no-color.org/. Signed-off-by: Ulrich Müller <ulm@gentoo.org> Closes: https://bugs.gentoo.org/898230 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: fix quiet mode with keywordsArthur Zamarin2023-01-201-0/+4
| | | | | Resolves: https://github.com/pkgcore/pkgcheck/issues/413 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: suppress non-error results in quiet modeArthur Zamarin2023-01-201-1/+4
| | | | | | | When in quiet mode, include in scan only results of error level. Resolves: https://github.com/pkgcore/pkgcheck/issues/413 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* format using blackArthur Zamarin2022-12-299-237/+345
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* setup.py: move to pure setuptoolsArthur Zamarin2022-11-191-2/+6
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: add support for NOCOLOR to disable colorsArthur Zamarin2022-11-191-0/+3
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: respect jobs count from MAKEOPTSArthur Zamarin2022-09-301-2/+18
| | | | | | | | | When selecting the default `--jobs` value for `pkgcheck scan`, respect `MAKEOPTS`. As a result, it selects the correct value during tests phase. Bug: https://bugs.gentoo.org/799314 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* scan: move `--stabletime` arg to StableRequestCheckArthur Zamarin2022-08-251-8/+0
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* StableRequestCheck: Add stabletime config optionEmily Rowlands2022-08-141-0/+8
| | | | | | | | | | This commit adds an option allows the user to specify the time before a version is flagged by StableRequestCheck. The primary use case for this is in overlays where the stabilisation policy may be different from ::gentoo. Signed-off-by: Emily Rowlands <emily@erowl.net> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* pkgcheck show: fix missing f-stringTim Harder2021-03-171-6/+5
|
* pkgcheck scan: always load settings from bundled configTim Harder2021-03-041-0/+3
|
* pkgcheck: make snakeoil register known subcommands internallyTim Harder2021-03-021-8/+1
|
* pkgcheck: suppress pkgcore-specific help optionsTim Harder2021-02-261-1/+1
| | | | | They're still supported for now, just not shown when --help or similar is used.
* move addons into separate subdirTim Harder2021-02-263-3/+3
|
* move and rename custom argparse actions moduleTim Harder2021-02-263-12/+361
|
* pkgcheck scan: add more context why piped input blocksTim Harder2021-02-261-2/+4
|
* fix module import sorting with isortTim Harder2021-02-217-12/+5
|
* add initial ci subcommand supportTim Harder2021-02-212-0/+46
| | | | That helps support the pkgcheck github action.
* pkgcheck scan: parallelize profile node scan targets by dirTim Harder2021-02-191-3/+2
|
* pkgcheck scan: minor updates for comma-separated arg docsTim Harder2021-02-191-9/+9
|
* scripts: split shared argparsers into a separate moduleTim Harder2021-02-175-70/+71
|
* scripts: move config_argparser to scan moduleTim Harder2021-02-172-16/+17
| | | | Since it's not used by any other command.
* pkgcheck: use ArgumentParser from arghparse where possibleTim Harder2021-02-171-3/+4
| | | | | Instead of pkgcore's slightly enhanced version that injects config and domain options.
* pkgcheck.scripts: force subcmds to use proper prog settingsTim Harder2021-02-174-5/+6
|
* pkgcheck.scripts: split subcommands into separate modulesTim Harder2021-02-175-703/+735
|
* pkgcheck scan: simplify eclass/profile restriction generationTim Harder2021-02-131-10/+5
|
* pkgcheck scan: drop unnecessary restriction collapse supportTim Harder2021-02-081-13/+1
| | | | Checkrunners are now generated per restriction and run in parallel.
* pipeline: collapse restrictions to list during generation phaseTim Harder2021-02-081-18/+18
|
* pkgcheck: add 'style' keyword group to related arg docsTim Harder2021-02-081-5/+5
|
* Pipeline: generate checkrunners per restrictionTim Harder2021-02-081-0/+3
| | | | Fixes #279.
* pkgcheck replay: drop pickle stream supportTim Harder2021-01-291-20/+5
|
* base: use better info for Scope __str__()Tim Harder2020-12-291-2/+2
|
* pkgcheck scan: descend into profiles dir path targetsTim Harder2020-12-271-2/+3
| | | | | Meaning it will report any subprofile issues when pointed at a parent profile.
* pkgcheck scan: fix restriction generation for direct profile fileTim Harder2020-12-261-3/+3
|
* pkgcheck scan: support profiles dir targetsTim Harder2020-12-261-8/+12
| | | | | | Note that it currently doesn't descend into subdirs so targeting a profiles dir is generally like targeting a single profile node for testing.
* make targeted profiles file restrictions limit to node scopeTim Harder2020-12-261-1/+1
| | | | | So non-incremental profiles dir checks aren't also run when a node-specific restriction is targeted.
* pkgcheck scan: always set default restrictions lastTim Harder2020-12-261-1/+1
|
* pkgcheck scan: add support for profile file target restrictionsTim Harder2020-12-261-8/+15
|
* git: add initial incremental profile scanning supportTim Harder2020-12-261-1/+1
|
* drop unused importTim Harder2020-12-241-1/+0
|
* pkgcheck scan: perform remaining check validation during pipeline creationTim Harder2020-12-241-49/+0
|
* Pipeline: fix scope comparisonsTim Harder2020-12-241-2/+2
| | | | | Multiprocessing and other cases can cause object recreation so we can't rely on the is operator to work correctly in all situations.
* pkgcheck scan: improve wording for disabled -f/--filter docsTim Harder2020-12-241-5/+5
|
* pkgcheck scan: add docs for disabled and targeted -f/--filter argsTim Harder2020-12-241-1/+11
|
* pkgcheck scan: add todo note about argparsingTim Harder2020-12-231-1/+4
|
* pkgcheck: use separate repo argparser instanceTim Harder2020-12-231-11/+10
| | | | | So it can be used for both 'scan' and 'cache' subcommands without duplicating adding the argument.
* pkgcheck scan: add docs for additive -c/--checks argsTim Harder2020-12-231-6/+10
|