Skip to content

Commit 83a73e9

Browse files
committed
Bump Ruff to 0.8.0
1 parent 9588834 commit 83a73e9

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: pretty-format-ini
2020
args: [--autofix]
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.6.9 # Must match requirements-dev.txt
22+
rev: v0.8.0 # Must match requirements-dev.txt
2323
hooks:
2424
- id: ruff
2525
args: [--fix]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enableTypeIgnoreComments = false
1212
reportMissingTypeStubs = "warning"
1313
# Extra runtime safety
1414
reportUnnecessaryComparison = "warning"
15-
# Using Flake8/Ruff instead. Name is already grayed out and red squiggle looks like a mistyped import
15+
# Using Ruff instead. Name is already grayed out and red squiggle looks like a mistyped import
1616
reportUnusedImport = "none"
1717

1818
###

ruff.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ ignore = [
3838
"SIM105", # flake8-simplify: use-contextlib-suppress
3939
# Negative performance impact and more verbose https://github.com/astral-sh/ruff/issues/7871
4040
"UP038", # non-pep604-isinstance
41-
# deprecated and is actually slower for cases relevant to unpacking: https://github.com/astral-sh/ruff/issues/12754
42-
"UP027", # unpacked-list-comprehension
4341
# Checked by type-checker (pyright/mypy)
4442
"ANN", # flake-annotations
4543
"PGH003", # blanket-type-ignore
46-
"TCH", # flake8-type-checking
44+
"TC", # flake8-type-checking
4745
# Already shown by Pylance, checked by pyright, and can be caused by overloads.
4846
"ARG002", # Unused method argument
4947
# We want D213: multi-line-summary-second-line and D211: no-blank-line-before-class
@@ -60,7 +58,7 @@ ignore = [
6058
"TD003", # flake8-todos: missing-todo-link
6159

6260
# False-positives
63-
"TCH004", # https://github.com/astral-sh/ruff/issues/3821
61+
"TC004", # https://github.com/astral-sh/ruff/issues/3821
6462

6563
###
6664
# Conflict with formatter (you can remove this section if you don't use Ruff as a formatter)
@@ -131,7 +129,6 @@ max-branches = 15
131129
"F811", # Re-exports false positives
132130
# The following can't be controlled for external libraries:
133131
"A", # Shadowing builtin names
134-
"E741", # ambiguous variable name
135132
"F403", # `from . import *` used; unable to detect undefined names
136133
"FBT", # flake8-boolean-trap
137134
"ICN001", # unconventional-import-alias

scripts/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
-r requirements.txt
1313
#
1414
# Linters & Formatters
15-
ruff>=0.6.9 # Pre-commit fix # Must match .pre-commit-config.yaml
15+
ruff>=0.8.0 # Pre-commit fix # Must match .pre-commit-config.yaml
1616
#
1717
# Types
1818
types-keyboard

0 commit comments

Comments
 (0)