• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elParaguayo / qtile
74%
master: 82%

Build:
Build:
LAST BUILD BRANCH: wayland-output-power-management
DEFAULT BRANCH: master
Repo Added 09 Dec 2021 06:59PM UTC
Token ucIGYHwGrkVqNWPwwRwgFdCPxbbboww0d regen
Build 1403 Last
Files 153
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix-hook-registry
branch: fix-hook-registry
CHANGE BRANCH
x
Reset
Sync Branches
  • fix-hook-registry
  • 3digit-rgb
  • add-cairocffi-tox
  • add-default-config-option
  • add-plasma
  • async-functions
  • battery-icon-padding
  • better-error-handling
  • better-finalisation
  • better-logging-widget-error
  • bitwise-match
  • black-fixes
  • blackgolybpr
  • bluetooth-log-spamming
  • bsp-margin-single
  • centre-floating
  • ci-PIthon
  • ci-backend-matrix
  • ci-mypy
  • ci-py311
  • ci-py313
  • ci-pypy
  • ci-rtd-version-bump
  • cmd-decorator-tidy-up
  • cmd-obj-kwargs
  • cmd_obj_pass_kwargs
  • cmd_paint_screen
  • codestyle-badge
  • columns-black-formatting
  • columns-default-ratio
  • columns-for-lefties
  • command-graph-decorators
  • config-allow-keycodes
  • config-group-typing
  • coveralls-badge
  • custom_hooks
  • custom_log_path
  • dbus-fast-migration
  • dbus-signal-handling
  • debugging-pulsevolume
  • delay-libcst
  • delete-coveragerc
  • desktop-client-message
  • different-borders
  • doc_fixes
  • docs-better-hooks
  • docs-cairo-fail
  • docs-fix-homepage
  • docs-html-theme
  • docs-lazy
  • docs-quick-build
  • draw-full-bar
  • drawer-refactor-take3
  • filter-stack-for-missing-windows
  • fix-coveralls
  • fix-dead-widget-polling
  • fix-docs-pyxdg-ref
  • fix-docs-typo
  • fix-fake-notification-manager
  • fix-floating-bar-bottom
  • fix-has_keyboard
  • fix-hooks-doc
  • fix-imapwidget
  • fix-launchar-init
  • fix-libffi-version-issue
  • fix-loop-exception-handler-again
  • fix-matrix-defaults
  • fix-mirror-static-length
  • fix-mirrors
  • fix-mypy-errors
  • fix-notify-widget-bug
  • fix-openweather-test
  • fix-packaging-test
  • fix-pr-workflow-typo
  • fix-reload-split-config
  • fix-screen-reconfigure-mirror-bug
  • fix-screensplit-match-bug
  • fix-text-margin-issue
  • fix-textbox-max-chars
  • fix-volume-widget-theme-handling
  • fix-wayland-builder
  • fix-wayland-builder-v2
  • fix_bluetooth_dbus
  • fixing-packaging
  • floating-bar
  • floating-exceptions
  • genpollcommand-strip
  • groupbox-toggle-bug
  • hide-commands
  • hide-crashed-widgets
  • hook-docs
  • hook-registries
  • hook-wake-event
  • how-to-layout
  • internal-bring-to-front
  • issue-2647
  • issue-2975
  • issue-3093
  • issue-3135
  • issue-3144
  • issue-3148
  • issue-3157
  • issue-3158
  • issue-3161
  • issue-3165
  • issue-3171
  • issue-3173
  • issue-3185-groupbox-fmt
  • issue-3223
  • issue-3224
  • issue-3228
  • issue-3260
  • issue-3272
  • issue-3353
  • issue-3411-battery-not-charging
  • issue-3418
  • issue-3433
  • issue-3445-scrolling
  • issue-3461
  • issue-3475-notifications
  • issue-3476-launchbar
  • issue-3488
  • issue-3536
  • issue-3656
  • issue-3668
  • issue-3739-mirror-stretch
  • issue-3751-window-focus
  • issue-3777-wallpaper
  • issue-3786-timezone-update
  • issue-3800-blank-window-focus
  • issue-3816-bluetooth-name
  • issue-3825-docs
  • issue-3854-tasklist-width
  • issue-3855-launchbar-icon-size
  • issue-3867-notification
  • issue-3869-pango-error
  • issue-3873-tasklist-alignment
  • issue-3952-sni-icon-updates
  • issue-3964-html-docs
  • issue-4003-4004-currentlayout
  • issue-4024-simple-key-binder
  • issue-4043-battery-icon-position
  • issue-4107-pango-markup-ampersand
  • issue-4125-docs-graph-links
  • issue-4132-thermalsensor-foreground
  • issue-4153-notify-reload-pango-error
  • issue-4224-sni-no-icons
  • issue-4272-currentlayouticon-margins
  • issue-4288-monadthreecol-margins
  • issue-4328-widgetbox-padding
  • issue-4342-keyboardlayout
  • issue-4355-keep-above-bring-front
  • issue-4384-broken-links
  • issue-4425-bar-flickering
  • issue-4552-launchbar
  • issue-4589-mirrored-background
  • issue-4634-treetab-resolution
  • issue-4651-duplicate-keys
  • issue-4670-raise-active-windows
  • issue-4674-text-crashing
  • issue-4705-spawn-env
  • issue-4915
  • issue-4979-treetab-weirdness
  • issue-4986-scratchpad-border
  • issue-4987
  • issue-4996-tasklist-no-stretch
  • issue-5029-layout-changer
  • issue-5122-statusnotifier-new-icons
  • issue-5141-text-padding
  • issue-5283
  • issue2912-window-centre
  • issue4668-launchbar-clone
  • issue_3637
  • jagguli-cpu
  • jw-wlr017
  • key-docs
  • keychord-desc
  • latest-black-update
  • launchbar-font
  • launchbar-render-fix
  • layout-icon-paths
  • layout-screenshots
  • layout-slice-window
  • layout-spiral
  • loop-exception-logging
  • main-plus-testing
  • master
  • mcol-cmdobj
  • mem-custom-value
  • migrate-libcst
  • mirror-fixes
  • more-mirror-fixes
  • more-tests
  • more_shell_improvements
  • mpris-fix-format-string
  • mpris-metadata-on-reload
  • mpris2-add-player-name
  • mpris2-metadata-on-reload
  • new-bluetooth-widget
  • new-pulsevolume-widget
  • notify-background
  • notify-better-timeouts
  • pin-pytest-cov
  • plasma-docs
  • plasma-fix-add-mode-status
  • plugging-qtile-examples
  • pseudo-transparency
  • pulse-single-server-connection
  • pulse-widget-creation-timing
  • pyproject-extras
  • pyproject-scm-version
  • pytest-cov-3
  • qtile-repl
  • qtile-shell-cmd-args
  • quick-check
  • reconfig-windows-bug
  • reduce_logging
  • register-new-hooks
  • remove-docs-test
  • remove-flaky-test
  • remove-heisenbugs
  • remove-old-files
  • remove-print
  • remove-pulse-cffi-setup
  • repl-fix
  • repl-fixes
  • revert-keyboard-grab
  • revert-khal-calendar-test
  • revert-maximize-commit
  • revert-pyproject-toml
  • revert-systray-icon-ordering
  • rtd-inline
  • scratchpad-kill-bug
  • screensplit
  • shell_dont_split_eval_args
  • simplify_cmd_spawn
  • single-systray
  • skip-spawn-in-group-test
  • sleep-hook-docs
  • sni-callbacks-on-reload
  • sni-fixes
  • sni-fixes-v2
  • sni-fixes-v3
  • sni-refactor
  • sni-swallow-ayatana-errors
  • sni-typo
  • sni_test_failure
  • spawn-in-group
  • suspend-hook
  • svg-image-issue
  • swaync-widget
  • systray-icon-order
  • systray-inheritance
  • systray-typo
  • tasklist-calculated-width
  • tasklist-desktop
  • tasklist-img
  • test-ci-fix
  • test-openweather
  • test-rtd-webhook
  • test-systray
  • test-tasklist
  • test-vertical-bars
  • test_wlan_docs_build
  • threecol-icon
  • tidy-notify-clear
  • tidy-up-dbus-matches
  • tox-4-gh-actions
  • tox-dbus-next
  • update-default-config
  • update-threadpooltext
  • use-caplog
  • v0.23.0-beta3
  • venv-build-failure
  • vertical-clock
  • vertical-launchbar
  • vertical-tasklist
  • vertical-text-no-rotate
  • wallpaper-resize
  • wayc-build-debugging
  • wayc-drag-layer-fix
  • wayc-ext-session-lock
  • wayc-fix-title
  • wayc-fullscreen-debugging
  • wayc-gitignore
  • wayc-image-capture
  • wayc-limit-scroll-callbacks
  • wayc-move-bar-to-layer-group
  • wayc-move-up-down
  • wayc-no-screen-change-on-vt-switch
  • wayc-no-xdg-decorations
  • wayc-remove-xwayland-fullscreen-background
  • wayc-rtd2
  • wayc-scrolling-displacement-limit
  • wayc-scrolling-rate
  • wayc-skip-dgroup-test
  • wayc-test-rebase
  • wayc-tidy-ftl
  • wayc-tidy-up-internal
  • wayc-track-focused-view
  • wayc-xwayland-clipboard
  • wayc-xwayland-crash
  • wayc-xwayland-titles
  • wayc-xwyland-props
  • wayland-above-below
  • wayland-build-option
  • wayland-default-vt
  • wayland-ftl-urgent-window
  • wayland-handle-key-repeats
  • wayland-idle
  • wayland-image-copy
  • wayland-layer-shell-version
  • wayland-logging
  • wayland-output-power-management
  • wayland-pager-focus
  • wayland-silence-build-warning
  • wayland-skip-taskbar
  • wayland-transient-for
  • wayland-wm-type
  • wayland_remove_scroll_logging
  • when-backend
  • widget-screenshots
  • widgetbox-bar-border
  • widgetbox-open-close
  • widgetbox-start-toggled
  • window-border-styling
  • window-clipping
  • wrap-text
  • x11-drawer-clear
  • x11-floating-layers
  • x11-layering-floating-issue
  • x11-pointerbarrier-screen-focus
  • x11-test-fix
  • z-layer-management

16 Nov 2023 06:23PM UTC coverage: 73.952% (-0.02%) from 73.975%
6894926326

push

github

elParaguayo
Prevent KeyError in third party hook registries

Reloading the config can cause third party hook registries to raise a
KeyError when firing hooks. This is because the `subscriptions` dict is
cleared but the regitry key is only created when a hook is subscribed
(as the hook module is not reloaded). Therefore, if a user does not
subcribe to any hooks from the third party library, this will cause the
hook to fail.

Fixes: https://github.com/elParaguayo/qtile-extras/issues/301

2 of 2 new or added lines in 1 file covered. (100.0%)

6 existing lines in 1 file now uncovered.

14613 of 19760 relevant lines covered (73.95%)

5.26 hits per line

Relevant lines Covered
Build:
Build:
19760 RELEVANT LINES 14613 COVERED LINES
5.26 HITS PER LINE
Source Files on fix-hook-registry
  • Tree
  • List 148
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
6894926326 fix-hook-registry Prevent KeyError in third party hook registries Reloading the config can cause third party hook registries to raise a KeyError when firing hooks. This is because the `subscriptions` dict is cleared but the regitry key is only created when a hook ... push 16 Nov 2023 06:37PM UTC elParaguayo github
73.95
See All Builds (806)

Badge your Repo: qtile

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc