Skip to content

style: Fix os-stat (PTH116) by replacing os.stat() calls with pathlib #4635

style: Fix os-stat (PTH116) by replacing os.stat() calls with pathlib

style: Fix os-stat (PTH116) by replacing os.stat() calls with pathlib #4635

Triggered via pull request September 28, 2024 15:33
Status Failure
Total duration 59s
Artifacts 1

python-code-quality.yml

on: pull_request
Matrix: Python Code Quality Checks
Python Code Quality Result  /  Success
0s
Python Code Quality Result / Success
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Python Code Quality Checks (ubuntu-22.04)
Process completed with exit code 1.
Ruff (PTH116): gui/wxpython/core/watchdog.py#L62
gui/wxpython/core/watchdog.py:62:25: PTH116 `os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`
Ruff (PTH116): gui/wxpython/gui_core/preferences.py#L2429
gui/wxpython/gui_core/preferences.py:2429:25: PTH116 `os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`
Python Code Quality Checks (ubuntu-22.04)
Process completed with exit code 1.
Python Code Quality Result / Success
Some jobs were failed
Python Code Quality Result / Success
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
formatted-ruff
5.23 KB