Skip to content

Commit 9ad75eb

Browse files
Fixed ruff-check to not fail when checking unit tests
Changed `ruff.toml` so `ruff` uses Python 3.13 when checking files in `tests/` and `docs/`.
1 parent 53ca10f commit 9ad75eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ruff.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# SPDX-FileCopyrightText: 2024 Tim Cocks for Adafruit Industries
2-
# SPDX-FileCopyrightText: Copyright (c) 2025 EGJ Moorington
2+
# SPDX-FileCopyrightText: Copyright (c) 2025, 2026 EGJ Moorington
33
#
44
# SPDX-License-Identifier: MIT
55

66
target-version = "py38"
77
line-length = 100
88

9+
[per-file-target-version]
10+
"{docs,tests}/**/*.py" = "py313"
11+
912
[lint]
1013
select = ["I", "PL", "UP"]
1114

0 commit comments

Comments
 (0)