Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ jobs:
steps:
- name: Check out source repository
uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
- uses: astral-sh/ruff-action@v3
# this runs `ruff check`
- run: ruff format --check
# this runs `ruff format --check`, additionally
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ Examples for translatable strings are `_("This is a string")` in Python code, or

To ensure the new strings are well-formed, you can use `python validate_po.py --validate`.

To ensure that the coding and formatting guidelines are followed, install [ruff](https://docs.astral.sh/ruff/) and run `ruff check` and `ruff format --check` to check for issues, as well as `ruff check --fix` and `ruff format` to autofix them.

## How to Release?

0. Run `update-po.sh` to generate new translation files (which will be eventually updated by translators). Commit and push the changes to the master branch.
Expand Down
2 changes: 1 addition & 1 deletion safeeyes/plugins/donotdisturb/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_active_window(x11_display):
active_windows = get_window_property(root, NET_ACTIVE_WINDOW, Xlib.Xatom.WINDOW)
if active_windows and active_windows[0]:
active_window = active_windows[0]
return x11_display.create_resource_object('window', active_window)
return x11_display.create_resource_object("window", active_window)
return None

x11_display = Xlib.display.Display()
Expand Down
Loading