]> jfr.im git - yt-dlp.git/blame - setup.cfg
[extractor/sbs] Python 3.7 compat
[yt-dlp.git] / setup.cfg
CommitLineData
4056ad8f 1[wheel]
c487cf00 2universal = true
dc9a441b 3
8a82af35 4
dc9a441b 5[flake8]
8a82af35 6exclude = build,venv,.tox,.git,.pytest_cache
19a03940 7ignore = E402,E501,E731,E741,W503
8a82af35 8max_line_length = 120
c487cf00 9per_file_ignores =
8a82af35 10 devscripts/lazy_load_template.py: F401
69bec673 11 yt_dlp/utils/__init__.py: F401, F403
8a82af35 12
c487cf00 13
2fa669f7 14[autoflake]
15ignore-init-module-imports = true
16ignore-pass-after-docstring = true
17remove-all-unused-imports = true
18remove-duplicate-keys = true
19remove-unused-variables = true
20
21
c487cf00 22[tool:pytest]
23addopts = -ra -v --strict-markers
24markers =
25 download
26
8a82af35 27
c487cf00 28[tox:tox]
29skipsdist = true
edfc7725 30envlist = py{36,37,38,39,310,311},pypy{36,37,38,39}
c487cf00 31skip_missing_interpreters = true
32
33[testenv] # tox
34deps =
edfc7725 35 pytest
c487cf00 36commands = pytest {posargs:"-m not download"}
37passenv = HOME # For test_compat_expanduser
38setenv =
39 # PYTHONWARNINGS = error # Catches PIP's warnings too
40
8a82af35 41
c487cf00 42[isort]
31b532a1 43py_version = 37
c487cf00 44multi_line_output = VERTICAL_HANGING_INDENT
45line_length = 80
46reverse_relative = true
47ensure_newline_before_comments = true
48include_trailing_comma = true
54007a45 49known_first_party =
50 test