Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit fa658e5

Browse files
committed
Update mypy, pylint policy`
1 parent 4a7af31 commit fa658e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ check_untyped_defs = true
3737
warn_return_any = true
3838
show_error_codes = true
3939
warn_unused_ignores = true
40-
ignore_missing_imports = true # for 3rd party modules that aren't typed well
40+
ignore_missing_imports = true # disables imported modules' type checking, use pyright instead
4141
python_version = 3.9
42-
disable_error_code = ["no-untyped-call"]
42+
disable_error_code = ["no-untyped-call", "no-redef", "no-any-unimported"]
4343

4444
[tool.pydantic-mypy]
4545
init_forbid_extra = true
@@ -83,6 +83,7 @@ load-plugins = "pylint_quotes"
8383
persistent = "yes"
8484
suggestion-mode = "yes"
8585
unsafe-load-any-extension = "yes"
86+
variable-rgx = '((([a-z_][a-z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-z][a-z0-9_]+__))$)|([A-Z_][A-Z0-9_]+$)' # allows CONSTANT_CASE in methods or in classes
8687

8788
[tool.pylint.format]
8889
max-line-length = 119

0 commit comments

Comments
 (0)