File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ extend-safe-fixes = [
7171 " UP036" , # Remove unnecessary `sys.version_info` blocks
7272]
7373ignore = [
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.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ packaging==24.1
1313pathspec>=0.11.1
1414pre-commit
1515# Required by create_baseline_stubs.py. Must match .pre-commit-config.yaml.
16- ruff==0.7.1
16+ ruff==0.8.0
1717stubdefaulter==0.1.0
1818termcolor>=2.3
1919tomli==2.0.2
You can’t perform that action at this time.
0 commit comments