]> jfr.im git - yt-dlp.git/blob - setup.cfg
[cleanup] Misc
[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
12
13 [autoflake]
14 ignore-init-module-imports = true
15 ignore-pass-after-docstring = true
16 remove-all-unused-imports = true
17 remove-duplicate-keys = true
18 remove-unused-variables = true
19
20
21 [tool:pytest]
22 addopts = -ra -v --strict-markers
23 markers =
24 download
25
26
27 [tox:tox]
28 skipsdist = true
29 envlist = py{36,37,38,39,310,311},pypy{36,37,38,39}
30 skip_missing_interpreters = true
31
32 [testenv] # tox
33 deps =
34 pytest
35 commands = pytest {posargs:"-m not download"}
36 passenv = HOME # For test_compat_expanduser
37 setenv =
38 # PYTHONWARNINGS = error # Catches PIP's warnings too
39
40
41 [isort]
42 py_version = 37
43 multi_line_output = VERTICAL_HANGING_INDENT
44 line_length = 80
45 reverse_relative = true
46 ensure_newline_before_comments = true
47 include_trailing_comma = true
48 known_first_party =
49 test