Skip to content

Commit 13ae8f6

Browse files
committed
fix: run ruff
1 parent ba53669 commit 13ae8f6

38 files changed

+38
-1
lines changed

check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#
55
set -eu
66

7-
python -m ruff --fix docs src
87
python -m ruff format docs src
8+
python -m ruff check --fix docs src
99

1010
# "--platform win32" to not fail on ctypes.windll (it does not affect the overall check on other OSes)
1111
python -m mypy --platform win32 src docs/source/examples

docs/source/examples/callback.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Screenshot of the monitor 1, with callback.
55
"""
6+
67
import os
78
import os.path
89

docs/source/examples/custom_cls_image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Screenshot of the monitor 1, using a custom class to handle the data.
55
"""
6+
67
from typing import Any
78

89
import mss

docs/source/examples/fps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Simple naive benchmark to compare with:
55
https://pythonprogramming.net/game-frames-open-cv-python-plays-gta-v/
66
"""
7+
78
import time
89

910
import cv2

docs/source/examples/fps_multiprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Example using the multiprocessing module to speed-up screen capture.
55
https://github.com/pythonlessons/TensorFlow-object-detection-tutorial
66
"""
7+
78
from multiprocessing import Process, Queue
89

910
import mss

docs/source/examples/from_pil_tuple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Use PIL bbox style and percent values.
55
"""
6+
67
import mss
78
import mss.tools
89

docs/source/examples/linux_display_keyword.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Usage example with a specific display.
55
"""
6+
67
import mss
78

89
with mss.mss(display=":0.0") as sct:

docs/source/examples/opencv_numpy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
OpenCV/Numpy example.
55
"""
6+
67
import time
78

89
import cv2

docs/source/examples/part_of_screen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Example to capture part of the screen.
55
"""
6+
67
import mss
78
import mss.tools
89

docs/source/examples/part_of_screen_monitor_2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Example to capture part of the screen of the monitor 2.
55
"""
6+
67
import mss
78
import mss.tools
89

0 commit comments

Comments
 (0)