mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
* Add mypy config, fix type errors in a few random places * Add typing_extensions * Use setup.cfg for mypy's config
45 lines
922 B
INI
45 lines
922 B
INI
[bdist_wheel]
|
|
universal=1
|
|
|
|
[flake8]
|
|
ignore=
|
|
E203, # Whitespace before ':'
|
|
E266, # Too many leading '#' for block comment
|
|
W503, # Line break occurred before a binary operator
|
|
P1, # unindexed parameters in the str.format, see:
|
|
# https://pypi.org/project/flake8-string-format/
|
|
max_line_length=79
|
|
max-complexity = 15
|
|
select=B,C,E,F,W,T4,B902,T,P
|
|
show_source=true
|
|
count=true
|
|
|
|
[isort]
|
|
profile=black
|
|
known_first_party=dvc,tests
|
|
line_length=79
|
|
|
|
[tool:pytest]
|
|
timeout = 600
|
|
timeout_method = thread
|
|
log_level = debug
|
|
addopts = -ra
|
|
|
|
[mypy]
|
|
# Error output
|
|
show_column_numbers = True
|
|
show_error_codes = True
|
|
show_error_context = True
|
|
show_traceback = True
|
|
pretty = True
|
|
|
|
# See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports.
|
|
ignore_missing_imports = True
|
|
check_untyped_defs = False
|
|
|
|
# Warnings
|
|
warn_no_return=True
|
|
warn_redundant_casts=True
|
|
warn_unused_ignores=True
|
|
warn_unreachable = True
|