@@ -158,6 +158,7 @@ line-length = 79
158158lint.select = [
159159 " ALL" ,
160160]
161+ lint.extend-select = [ " ANN" , " PGH003" , " PYI" ]
161162lint.ignore = [
162163 # Ruff warns that this conflicts with the formatter.
163164 " COM812" ,
@@ -180,6 +181,7 @@ lint.ignore = [
180181 " TC002" ,
181182 " TC003" ,
182183]
184+ lint.explicit-preview-rules = true
183185lint.per-file-ignores."doccmd_*.py" = [
184186 # Allow our chosen docstring line-style - pydocstringformatter handles
185187 # formatting but docstrings in docs may not match this style.
@@ -205,6 +207,7 @@ lint.flake8-tidy-imports.banned-api."typing.cast".msg = """\
205207 typing.cast is banned: use explicit type narrowing or a typed variable instead.\
206208 """
207209lint.pydocstyle.convention = " google"
210+ lint.preview = true
208211
209212[tool .pylint ]
210213# Disable the message, report, category or checker with the given id(s). You
@@ -456,6 +459,23 @@ typeCheckingMode = "strict"
456459enableTypeIgnoreComments = false
457460reportUnnecessaryTypeIgnoreComment = true
458461
462+ [tool .ty ]
463+ rules.blanket-ignore-comment = " error"
464+ rules.division-by-zero = " warn"
465+ rules.dynamic-function-decorator-return = " error"
466+ rules.missing-type-argument = " error"
467+ rules.possibly-missing-attribute = " warn"
468+ rules.possibly-missing-import = " warn"
469+ rules.possibly-unresolved-reference = " warn"
470+ rules.unsound-assignment = " error"
471+ rules.unsound-return-statement = " error"
472+ rules.unsound-yield = " error"
473+ rules.unsupported-dynamic-base = " warn"
474+ terminal.error-on-warning = true
475+ analysis.respect-type-ignore-comments = false
476+ analysis.strict-equality-semantics = true
477+ analysis.strict-generic-narrowing = true
478+
459479[tool .pytest ]
460480addopts = [
461481 " --strict-markers" ,
0 commit comments