Skip to content

Commit b3f0851

Browse files
authored
Merge pull request slgobinath#690 from deltragon/ruff-action
ci: switch to official ruff action, run check & format check
2 parents 17bbcaa + 0a0d18e commit b3f0851

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ jobs:
99
steps:
1010
- name: Check out source repository
1111
uses: actions/checkout@v3
12-
- uses: chartboost/ruff-action@v1
12+
- uses: astral-sh/ruff-action@v3
13+
# this runs `ruff check`
14+
- run: ruff format --check
15+
# this runs `ruff format --check`, additionally

safeeyes/plugins/donotdisturb/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_active_window(x11_display):
8383
active_windows = get_window_property(root, NET_ACTIVE_WINDOW, Xlib.Xatom.WINDOW)
8484
if active_windows and active_windows[0]:
8585
active_window = active_windows[0]
86-
return x11_display.create_resource_object('window', active_window)
86+
return x11_display.create_resource_object("window", active_window)
8787
return None
8888

8989
x11_display = Xlib.display.Display()

0 commit comments

Comments
 (0)