2020-10-02 16:25:08 +05:30
|
|
|
[mypy]
|
|
|
|
# --- https://mypy.readthedocs.io/en/stable/config_file.html
|
|
|
|
# try to keep all under .cache directory
|
|
|
|
cache_dir = .cache/mypy/
|
2020-10-02 18:59:34 +05:30
|
|
|
# warn_unused_ignores = True
|
|
|
|
warn_unused_configs = True
|
2020-10-02 16:25:08 +05:30
|
|
|
warn_no_return = False
|
2022-01-18 20:24:31 +05:30
|
|
|
|
2021-05-06 19:24:09 +05:30
|
|
|
; a regex to exclude certain directories
|
2022-07-04 01:10:16 -04:00
|
|
|
exclude = ((xonsh/ply)|(xontrib/(mpl.*py|distributed.py|jedi.py)))
|
2022-01-18 20:24:31 +05:30
|
|
|
|
|
|
|
;match dmypy semantics - https://github.com/python/mypy/issues/8046
|
|
|
|
local_partial_types = True
|
2020-10-02 16:25:08 +05:30
|
|
|
|
2022-12-20 10:12:12 +05:30
|
|
|
; since v0.991 implicit optional became True by default.
|
|
|
|
no_implicit_optional=False
|
|
|
|
|
|
|
|
|
2020-10-02 18:59:34 +05:30
|
|
|
# report
|
2020-10-02 16:25:08 +05:30
|
|
|
show_error_context = True
|
|
|
|
show_column_numbers = True
|
|
|
|
show_error_codes = True
|
|
|
|
pretty = True
|
|
|
|
|
2020-10-02 22:55:28 +05:30
|
|
|
# the __init__ files have dynamic check - ignoring the attribute error. others are generated files
|
|
|
|
# top level package name only ignores the __init__.py file.
|
2022-07-04 01:10:16 -04:00
|
|
|
[mypy-xonsh.parser_table,xonsh.completion_parser_table,xonsh.parsers.parser_table.*,xonsh.parsers.completion_parser_table.*,xonsh,xonsh.prompt,xonsh.history,xonsh.completers,xonsh.procs]
|
2020-10-02 16:25:08 +05:30
|
|
|
ignore_errors = True
|
|
|
|
|
2020-10-02 18:59:34 +05:30
|
|
|
# 3rd party libraries that we dont have control over
|
2022-07-04 01:10:16 -04:00
|
|
|
[mypy-zmq.*,setproctitle,xonsh.ply.*,winreg.*,pygments.*,importlib_resources.*,nt.*,prompt_toolkit.*,distro.*,conda_suggest.*,_winreg.*]
|
2020-10-02 18:59:34 +05:30
|
|
|
ignore_missing_imports = True
|
2022-07-01 21:17:01 +05:30
|
|
|
ignore_errors = True
|
2020-10-02 16:25:08 +05:30
|
|
|
|
|
|
|
[tool:pytest]
|
|
|
|
cache_dir = .cache/pytest
|
2021-06-11 17:31:35 +05:30
|
|
|
markers =
|
|
|
|
news: check changelog unit is valid rst
|
2021-12-23 06:31:26 +05:30
|
|
|
testpaths =
|
|
|
|
tests
|