Skip to content

Commit f58713d

Browse files
authored
🚨 fix >1500 ruff errors using codemods (#5)
2 parents 8f7ef12 + 06c7c15 commit f58713d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2017
-1645
lines changed

‎.libcst.codemod.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
generated_code_marker: "@generated"
2+
formatter:
3+
- "./.venv/bin/ruff"
4+
- "format"
5+
- "--stdin-filename=__generated__.pyi"
6+
- "-"
7+
blacklist_patterns: []
8+
modules:
9+
- "libcst.codemod.commands"
10+
- "tools.codemods"
11+
repo_root: "."

‎pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dev = [
4444
"ruff>=0.9.3",
4545
"basedmypy[faster-cache]>=2.9.1",
4646
"basedpyright>=1.24.0",
47+
"libcst>=1.6.0",
4748
]
4849

4950
[tool.hatch.build.targets.sdist]
@@ -67,13 +68,13 @@ strict = true
6768
disable_bytearray_promotion = true
6869
disable_memoryview_promotion = true
6970
enable_error_code = ["ignore-without-code", "truthy-bool"]
71+
disable_error_code = ["explicit-override"] # TODO
7072

7173
# basedmypy only
7274
warn_unreachable = false
7375
warn_unused_ignores = false
7476
disallow_any_explicit = false
7577

76-
7778
[tool.pyright]
7879
include = ["src/numpy-stubs"]
7980
ignore = [".venv"]
@@ -88,9 +89,9 @@ deprecateTypingAliases = true
8889
enableReachabilityAnalysis = false
8990
enableTypeIgnoreComments = false
9091
reportCallInDefaultInitializer = true
91-
reportImplicitOverride = true
92+
reportImplicitOverride = false # TODO
9293
reportImportCycles = true
93-
reportMissingSuperCall = true
94+
reportMissingSuperCall = false
9495
reportPrivateUsage = false
9596
reportPropertyTypeMismatch = false
9697
reportShadowedImports = true

0 commit comments

Comments
 (0)