Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 18110bf

Browse files
authoredMay 16, 2025··
Merge pull request #54 from adafruit/use_ruff
change to ruff
2 parents 5d9aa8d + 5bc4267 commit 18110bf

File tree

3 files changed

+11
-402
lines changed

3 files changed

+11
-402
lines changed
 

‎.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2-
# SPDX-FileCopyrightText: 2024 Justin Myers
1+
# SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
32
#
43
# SPDX-License-Identifier: Unlicense
54

‎.pylintrc

Lines changed: 0 additions & 399 deletions
This file was deleted.

‎ruff.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ target-version = "py38"
66
line-length = 100
77

88
[lint]
9+
preview = true
910
select = ["I", "PL", "UP"]
1011

1112
extend-select = [
@@ -92,7 +93,15 @@ ignore = [
9293
"PLR2004", # magic-value-comparison
9394
"UP030", # format literals
9495
"PLW1514", # unspecified-encoding
95-
96+
"PLR0913", # too-many-arguments
97+
"PLR0915", # too-many-statements
98+
"PLR0917", # too-many-positional-arguments
99+
"PLR0904", # too-many-public-methods
100+
"PLR0912", # too-many-branches
101+
"PLR0916", # too-many-boolean-expressions
102+
"PLR6301", # could-be-static no-self-use
103+
"PLC0415", # import outside toplevel
104+
"PLC2701", # private import
96105
]
97106

98107
[format]

0 commit comments

Comments
 (0)
Please sign in to comment.