[flake8]
select = C,E,F,W,B,B950
ignore = E402, E501, W503, ANN002, ANN003, ANN101, ANN102, ANN204
exclude = .git,__pycache__,build,dist,flatpak
max-line-length = 80
suppress-none-returning = True
suppress-dummy-args = True
application-import-names = sublime
import-order-style = edited

[mypy-bottle]
ignore_missing_imports = True

[mypy-deepdiff]
ignore_missing_imports = True

[mypy-deprecated]
ignore_missing_imports = True

[mypy-fuzzywuzzy]
ignore_missing_imports = True

[mypy-gi]
ignore_missing_imports = True

[mypy-gi.repository]
ignore_missing_imports = True

[mypy-keyring]
ignore_missing_imports = True

[mypy-mpv]
ignore_missing_imports = True

[mypy-osxmmkeys]
ignore_missing_imports = True

[mypy-pychromecast]
ignore_missing_imports = True

[mypy-pytest]
ignore_missing_imports = True

[mypy-playhouse.sqliteq]
ignore_missing_imports = True

[mypy-peewee]
ignore_missing_imports = True

[yapf]
based_on_style = pep8
split_before_bitwise_operator = true
split_before_arithmetic_operator = true
split_before_dot = true
split_before_logical_operator = true
split_complex_comprehension = true
split_before_first_argument = true

[tool:pytest]
python_files = tests/**/*.py tests/*.py
python_functions = test_* *_test
log_cli_level = 10
addopts =
    -vvv
    --doctest-modules
    --ignore-glob='flatpak'
    --ignore-glob='cicd'
    --cov=sublime
    --cov-report html
    --cov-report term
