-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from the-scouts/typing-mypy
- Loading branch information
Showing
14 changed files
with
340 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,15 @@ | ||
[tool.black] | ||
line-length = 180 | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
| setup.py | ||
)/ | ||
''' | ||
target-version = ["py38"] # Remember to change this if we change pins from Python 3.9! TODO black does not yet support 3.9 (13-01-2021) | ||
|
||
[tool.isort] | ||
line_length = 180 | ||
skip_glob = '\.eggs/*,\.git/*,\.venv/*,build/*,dist/*' | ||
profile = "google" | ||
py_version = "39" | ||
skip_gitignore = true | ||
no_lines_before = "STDLIB" | ||
single_line_exclusions = ["dash.dependencies", "typing", "dependencies"] | ||
# force_single_line = "True" wait until isort 5 | ||
known_dash = ["dash", "dash_core_components", "dash_html_components", "dash.dependencies"] | ||
known_pandas = ["pandas", "numpy", "pyarrow"] | ||
known_typing = "typing" | ||
sections = ["FUTURE","STDLIB","THIRDPARTY","DASH","PANDAS","FIRSTPARTY","LOCALFOLDER","TYPING"] | ||
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "DASH"," PANDAS", "FIRSTPARTY", "LOCALFOLDER", "TYPING"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[mypy] | ||
plugins = pydantic.mypy | ||
# help finding errors | ||
show_error_codes = True | ||
show_error_context = True | ||
# suppress errors from imported modules | ||
follow_imports = silent | ||
# disable re-exporting names | ||
no_implicit_reexport = True | ||
# warn about config that doesn't hit files | ||
warn_unused_configs = True | ||
# mypy --strict | ||
disallow_any_generics = True | ||
disallow_subclassing_any = True | ||
#disallow_untyped_calls = True | ||
disallow_untyped_defs = True | ||
disallow_incomplete_defs = True | ||
check_untyped_defs = True | ||
#disallow_untyped_decorators = True | ||
no_implicit_optional = True | ||
warn_redundant_casts = True | ||
warn_unused_ignores = True | ||
warn_return_any = True | ||
implicit_reexport = False | ||
strict_equality = True | ||
|
||
[pydantic-mypy] | ||
init_forbid_extra = True | ||
init_typed = True | ||
warn_required_dynamic_aliases = True | ||
warn_untyped_fields = True | ||
|
||
[mypy-dash_core_components] | ||
ignore_missing_imports = true | ||
|
||
[mypy-dash_html_components] | ||
ignore_missing_imports = true | ||
|
||
[mypy-dash] | ||
ignore_missing_imports = true | ||
|
||
[mypy-dash.*] | ||
ignore_missing_imports = true | ||
|
||
[mypy-lxml] | ||
ignore_missing_imports = true | ||
|
||
[mypy-pandas] | ||
ignore_missing_imports = true | ||
|
||
[mypy-pyarrow] | ||
ignore_missing_imports = true | ||
|
||
[mypy-flask_caching] | ||
ignore_missing_imports = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.