mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
* Set timeout for jobs in Github Actions Sometimes tests are getting frozen(most likely an issue with `pytest-xdist`), and sometimes the pip resolver is slow due to some weird constraints set by us or one of our dependencies. The default timeout is 360 minutes (6hrs), but our test completes on ~18 minutes at maximum, so I think 30mins should be enough to account for occasional CI slowdown. Also keeping the total job timeout at 45 mins, we usually require just 4 mins of extra time to do installation and setup but giving it 11 more minutes just in case. Similarly, `lint` completes in <5 mins usually, but giving it a 10 mins timeout. This should give us early feedback on the issue. * Update setup.cfg * Update setup.cfg
44 lines
952 B
INI
44 lines
952 B
INI
[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 = 200
|
|
timeout_method = thread
|
|
log_level = debug
|
|
addopts = -ra
|
|
markers =
|
|
needs_internet: Might need network access for the tests
|
|
|
|
[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_unreachable = True
|
|
files = dvc
|