2018-06-25 13:57:26 +00:00
|
|
|
[metadata]
|
|
|
|
license = Apache License 2.0
|
|
|
|
license_file = LICENSE.md
|
|
|
|
platforms = any
|
|
|
|
description = Open-source home automation platform running on Python 3.
|
|
|
|
long_description = file: README.rst
|
|
|
|
keywords = home, automation
|
|
|
|
classifier =
|
|
|
|
Development Status :: 4 - Beta
|
|
|
|
Intended Audience :: End Users/Desktop
|
|
|
|
Intended Audience :: Developers
|
|
|
|
License :: OSI Approved :: Apache Software License
|
|
|
|
Operating System :: OS Independent
|
2018-09-24 09:11:24 +00:00
|
|
|
Programming Language :: Python :: 3.7
|
2018-06-25 13:57:26 +00:00
|
|
|
Topic :: Home Automation
|
|
|
|
|
2016-08-21 18:44:40 +00:00
|
|
|
[tool:pytest]
|
2015-09-19 19:29:23 +00:00
|
|
|
testpaths = tests
|
2016-07-25 15:26:07 +00:00
|
|
|
norecursedirs = .git testing_config
|
2015-12-28 05:14:35 +00:00
|
|
|
|
2016-02-14 00:56:32 +00:00
|
|
|
[flake8]
|
2017-11-20 01:39:24 +00:00
|
|
|
exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build
|
2019-11-06 19:38:00 +00:00
|
|
|
doctests = True
|
2019-07-30 23:59:12 +00:00
|
|
|
# To work with Black
|
|
|
|
max-line-length = 88
|
|
|
|
# E501: line too long
|
|
|
|
# W503: Line break occurred before a binary operator
|
|
|
|
# E203: Whitespace before ':'
|
|
|
|
# D202 No blank lines allowed after function docstring
|
2019-09-24 06:23:53 +00:00
|
|
|
# W504 line break after binary operator
|
2019-07-30 23:59:12 +00:00
|
|
|
ignore =
|
|
|
|
E501,
|
|
|
|
W503,
|
|
|
|
E203,
|
2019-09-24 06:23:53 +00:00
|
|
|
D202,
|
|
|
|
W504
|
2016-11-27 22:33:30 +00:00
|
|
|
|
|
|
|
[isort]
|
|
|
|
# https://github.com/timothycrosley/isort
|
|
|
|
# https://github.com/timothycrosley/isort/wiki/isort-Settings
|
|
|
|
# splits long import on multiple lines indented by 4 spaces
|
2019-07-30 23:59:12 +00:00
|
|
|
multi_line_output = 3
|
|
|
|
include_trailing_comma=True
|
|
|
|
force_grid_wrap=0
|
|
|
|
use_parentheses=True
|
|
|
|
line_length=88
|
2016-11-27 22:33:30 +00:00
|
|
|
indent = " "
|
|
|
|
# by default isort don't check module indexes
|
|
|
|
not_skip = __init__.py
|
|
|
|
# will group `import x` and `from x import` of the same module.
|
|
|
|
force_sort_within_sections = true
|
|
|
|
sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|
2018-09-19 13:40:36 +00:00
|
|
|
default_section = THIRDPARTY
|
|
|
|
known_first_party = homeassistant,tests
|
|
|
|
forced_separate = tests
|
|
|
|
combine_as_imports = true
|
2019-08-01 05:53:53 +00:00
|
|
|
|
|
|
|
[mypy]
|
2019-12-16 06:29:19 +00:00
|
|
|
python_version = 3.7
|
2019-10-08 21:45:24 +00:00
|
|
|
ignore_errors = true
|
|
|
|
follow_imports = silent
|
|
|
|
ignore_missing_imports = true
|
|
|
|
warn_incomplete_stub = true
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_unused_configs = true
|
|
|
|
|
2019-12-16 06:29:19 +00:00
|
|
|
[mypy-homeassistant.bootstrap,homeassistant.components,homeassistant.config_entries,homeassistant.config,homeassistant.const,homeassistant.core,homeassistant.data_entry_flow,homeassistant.exceptions,homeassistant.loader,homeassistant.__main__,homeassistant.requirements,homeassistant.setup,homeassistant.util,homeassistant.auth.*,homeassistant.components.automation.*,homeassistant.components.binary_sensor.*,homeassistant.components.calendar.*,homeassistant.components.cover.*,homeassistant.components.device_automation.*,homeassistant.components.frontend.*,homeassistant.components.geo_location.*,homeassistant.components.group.*,homeassistant.components.history.*,homeassistant.components.http.*,homeassistant.components.image_processing.*,homeassistant.components.integration.*,homeassistant.components.light.*,homeassistant.components.lock.*,homeassistant.components.mailbox.*,homeassistant.components.media_player.*,homeassistant.components.notify.*,homeassistant.components.persistent_notification.*,homeassistant.components.proximity.*,homeassistant.components.remote.*,homeassistant.components.scene.*,homeassistant.components.sensor.*,homeassistant.components.sun.*,homeassistant.components.switch.*,homeassistant.components.systemmonitor.*,homeassistant.components.tts.*,homeassistant.components.vacuum.*,homeassistant.components.water_heater.*,homeassistant.components.weather.*,homeassistant.components.websocket_api.*,homeassistant.components.zone.*,homeassistant.helpers.*,homeassistant.scripts.*,homeassistant.util.*]
|
2020-03-12 10:52:20 +00:00
|
|
|
strict = true
|
2019-10-08 21:45:24 +00:00
|
|
|
ignore_errors = false
|
2019-08-01 05:53:53 +00:00
|
|
|
warn_unreachable = true
|
2020-03-12 10:52:20 +00:00
|
|
|
# TODO: turn these off, address issues
|
|
|
|
allow_any_generics = true
|
|
|
|
implicit_reexport = true
|