Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69e3eb8

Browse files
authored
Bump Ruff to 0.8.0, ignoring RUF022/RUF023 (#13090)
1 parent 0521fce commit 69e3eb8

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
args: [--fix=lf]
1212
- id: check-case-conflict
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.7.1 # must match requirements-tests.txt
14+
rev: v0.8.0 # must match requirements-tests.txt
1515
hooks:
1616
- id: ruff
1717
name: Run ruff on stubs, tests and scripts

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ extend-safe-fixes = [
7171
"UP036", # Remove unnecessary `sys.version_info` blocks
7272
]
7373
ignore = [
74+
# TODO: Ruff 0.8.0 added sorting of __all__ and __slots_. Validate whether we want this in stubs
75+
"RUF022",
76+
"RUF023",
77+
7478
###
7579
# Rules that can conflict with the formatter (Black)
7680
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
@@ -100,7 +104,6 @@ ignore = [
100104
# B033 could be slightly useful but Ruff doesn't have per-file select
101105
"B", # flake8-bugbear
102106
# Rules that are out of the control of stub authors:
103-
"E741", # ambiguous variable name
104107
"F403", # `from . import *` used; unable to detect undefined names
105108
# Stubs can sometimes re-export entire modules.
106109
# Issues with using a star-imported name will be caught by type-checkers.

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ packaging==24.1
1313
pathspec>=0.11.1
1414
pre-commit
1515
# Required by create_baseline_stubs.py. Must match .pre-commit-config.yaml.
16-
ruff==0.7.1
16+
ruff==0.8.0
1717
stubdefaulter==0.1.0
1818
termcolor>=2.3
1919
tomli==2.0.2

0 commit comments

Comments
 (0)