]>
Commit | Line | Data |
---|---|---|
4056ad8f | 1 | [wheel] |
c487cf00 | 2 | universal = true |
dc9a441b | 3 | |
8a82af35 | 4 | |
dc9a441b | 5 | [flake8] |
8a82af35 | 6 | exclude = build,venv,.tox,.git,.pytest_cache |
19a03940 | 7 | ignore = E402,E501,E731,E741,W503 |
8a82af35 | 8 | max_line_length = 120 |
c487cf00 | 9 | per_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] |
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 | ||
c487cf00 | 22 | [tool:pytest] |
23 | addopts = -ra -v --strict-markers | |
24 | markers = | |
25 | download | |
26 | ||
8a82af35 | 27 | |
c487cf00 | 28 | [tox:tox] |
29 | skipsdist = true | |
edfc7725 | 30 | envlist = py{36,37,38,39,310,311},pypy{36,37,38,39} |
c487cf00 | 31 | skip_missing_interpreters = true |
32 | ||
33 | [testenv] # tox | |
34 | deps = | |
edfc7725 | 35 | pytest |
c487cf00 | 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 | ||
8a82af35 | 41 | |
c487cf00 | 42 | [isort] |
31b532a1 | 43 | py_version = 37 |
c487cf00 | 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 | |
54007a45 | 49 | known_first_party = |
50 | test |