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