Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .libcst.codemod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
generated_code_marker: "@generated"
formatter:
- "./.venv/bin/ruff"
- "format"
- "--stdin-filename=__generated__.pyi"
- "-"
blacklist_patterns: []
modules:
- "libcst.codemod.commands"
- "tools.codemods"
repo_root: "."
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dev = [
"ruff>=0.9.3",
"basedmypy[faster-cache]>=2.9.1",
"basedpyright>=1.24.0",
"libcst>=1.6.0",
]

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

# basedmypy only
warn_unreachable = false
warn_unused_ignores = false
disallow_any_explicit = false


[tool.pyright]
include = ["src/numpy-stubs"]
ignore = [".venv"]
Expand All @@ -88,9 +89,9 @@ deprecateTypingAliases = true
enableReachabilityAnalysis = false
enableTypeIgnoreComments = false
reportCallInDefaultInitializer = true
reportImplicitOverride = true
reportImplicitOverride = false # TODO
reportImportCycles = true
reportMissingSuperCall = true
reportMissingSuperCall = false
reportPrivateUsage = false
reportPropertyTypeMismatch = false
reportShadowedImports = true
Expand Down
Loading
Loading