-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
Expand file tree
/
Copy path.ruff.toml
More file actions
22 lines (19 loc) · 1005 Bytes
/
Copy path.ruff.toml
File metadata and controls
22 lines (19 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
extend = "../.ruff.toml" # Inherit the project-wide settings
# Unlike Tools/, stdlib can use newer syntax than PYTHON_FOR_REGEN
target-version = "py315"
[lint]
select = [
"F401", # Unused import
]
[lint.per-file-ignores]
"ctypes/__init__.py" = ["F401"] # Re-exports from _ctypes
"ensurepip/__init__.py" = ["F401"] # `import zlib` availability check
"idlelib/idle_test/htest.py" = ["F401"] # Import for Windows DPI side effect
"idlelib/idle_test/template.py" = ["F401"] # Placeholder import `zzdummy`, see README.txt
"idlelib/idle_test/test_iomenu.py" = ["F401"] # Imports checked for existence
"importlib/_abc.py" = ["F401"] # Bootstrap-sensitive _bootstrap import
"importlib/machinery.py" = ["F401"] # NamespacePath re-export
"importlib/metadata/__init__.py" = ["F401"] # Synced from importlib_metadata
"profiling/sampling/sample.py" = ["F401"] # Re-exports PROFILING_MODE_* constants
"ssl.py" = ["F401"] # Re-exports from _ssl
"warnings.py" = ["F401"] # Re-exports from _py_warnings