setup.cfg 1006 B

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