File tree Expand file tree Collapse file tree 3 files changed +24
-16
lines changed
Expand file tree Collapse file tree 3 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 1010# ##
1111# General settings
1212# ##
13+ fixed_format_cache = true
1314show_column_numbers = true
1415strict = true
16+ strict_equality_for_none = true
1517report_deprecated_as_note = true
1618follow_untyped_imports = true
19+ allow_redefinition_new = true
20+ local_partial_types = true
1721
1822# All below are rules and codes not enabled by default even with strict=true
1923; <removed section from upstream>
@@ -34,13 +38,10 @@ disallow_incomplete_defs = false
3438# Specific to this project
3539# ##
3640
37- ; exclude mypyc build
38- exclude = .*(build)/.*
41+ ; exclude mypyc build and PyInstaller dist
42+ exclude = .*(build|dist )/.*
3943
4044mypy_path = $MYPY_CONFIG_FILE_DIR/typings
41- implicit_reexport = true
42- allow_redefinition_new = true
43- local_partial_types = true
4445
4546; Auto-generated code, not much we can do there
4647[mypy-gen.*]
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ dev = [
5252 #
5353 # Linters & Formatters
5454 " dprint-py>=0.50.0.0" ,
55- " mypy[faster-cache] >=1.16 " ,
55+ " mypy[faster-cache] >=1.18 " ,
5656 " pyright[nodejs] >=1.1.400" , # reportPrivateImportUsage behaviour change
5757 " ruff >=0.13.0" ,
5858 #
@@ -128,8 +128,11 @@ exclude = [
128128 " .git/" , # Avoid accidentally scanning branch names ending in .py
129129 " .venv*/" ,
130130 " .venv/" ,
131- # Auto generated, fails some strict pyright checks
131+ # mypyc build folder
132132 " build/" ,
133+ # PyInstaller dist folder
134+ " dist/" ,
135+ # Auto generated, fails some strict pyright checks
133136 " src/gen/" ,
134137]
135138# Ignore must be specified for Pylance to stop displaying errors
You can’t perform that action at this time.
0 commit comments