We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87039dc commit 8a4b120Copy full SHA for 8a4b120
Tools/cpuinfo/.ruff.toml
@@ -0,0 +1,16 @@
1
+# Python 3.12 is required for 'type' statements
2
+target-version = "py312"
3
+line-length = 79
4
+
5
+[format]
6
+skip-magic-trailing-comma = false
7
8
+[lint]
9
+select = [
10
+ "I", # isort
11
+ "F841", # unused variable
12
+ "RUF100", # Ban unused `# noqa` comments
13
+ "PGH004", # Ban blanket `# noqa` comments (only ignore specific error codes)
14
+]
15
16
Tools/cpuinfo/mypy.ini
@@ -0,0 +1,9 @@
+[mypy]
+files = Tools/cpuinfo/
+pretty = True
+python_version = 3.12
+strict = True
+extra_checks = True
+enable_error_code = ignore-without-code,redundant-expr,truthy-bool
+warn_unreachable = True
0 commit comments