pkgcheck.runners module¶
Check runners.
- class pkgcheck.runners.AsyncCheckRunner(options, source, checks)[source]¶
Bases:
CheckRunner
Generic runner for asynchronous checks.
Checks that would otherwise block for uncertain amounts of time due to I/O or network access are run in separate threads, queuing any relevant results on completion.
- schedule(executor, futures, restrict=<AlwaysBool always True @0x7fc9bcab1ec0>)[source]¶
Schedule all checks to run via the given executor.
- type = 'async'¶
- class pkgcheck.runners.CheckRunner(options, source, checks)[source]¶
Bases:
object
Generic runner for checks.
Checks are run in order of priority. Some checks need to be run before others if both are enabled due to package attribute caching in pkgcore, e.g. checks that test depset parsing need to come before other checks that use the parsed deps otherwise results from parsing errors could be missed.
- type = None¶
- class pkgcheck.runners.RepoCheckRunner(*args)[source]¶
Bases:
SyncCheckRunner
Generic runner for checks run across an entire repo.
- class pkgcheck.runners.SequentialCheckRunner(*args)[source]¶
Bases:
SyncCheckRunner
Generic runner for sequential checks.
Checks that must not be run in parallel, will be run on the main process.
- type = 'sequential'¶