From b60a7569d33004bb75355af92e8412cca7435592 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 25 Sep 2023 22:05:16 -0300 Subject: [PATCH] Cleaned up --- custom_components/ute/manifest.json | 3 +- setup.cfg | 62 ----------------------------- tests/__init__.py | 0 tests/bandit.yaml | 17 -------- tests/test_init.py | 9 ----- 5 files changed, 2 insertions(+), 89 deletions(-) delete mode 100644 setup.cfg delete mode 100644 tests/__init__.py delete mode 100644 tests/bandit.yaml delete mode 100644 tests/test_init.py diff --git a/custom_components/ute/manifest.json b/custom_components/ute/manifest.json index 6813715..954494c 100644 --- a/custom_components/ute/manifest.json +++ b/custom_components/ute/manifest.json @@ -7,5 +7,6 @@ "iot_class": "cloud_polling", "name": "UTE Electricity", "requirements": ["ute-wrapper==1.1.0"], - "version": "1.1.0" + "version": "1.1.0", + "issue_tracker": "https://github.com/rogsme/homeassistant_ute/issues" } diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 6197927..0000000 --- a/setup.cfg +++ /dev/null @@ -1,62 +0,0 @@ -[coverage:run] -source = - custom_components - -[coverage:report] -exclude_lines = - pragma: no cover - raise NotImplemented() - if __name__ == '__main__': - main() -show_missing = true - -[tool:pytest] -testpaths = tests -norecursedirs = .git -addopts = - --strict - --cov=custom_components - -[flake8] -# https://github.com/ambv/black#line-length -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 -# W504 line break after binary operator -ignore = - E501, - W503, - E203, - D202, - W504 - -[isort] -# https://github.com/timothycrosley/isort -# https://github.com/timothycrosley/isort/wiki/isort-Settings -# splits long import on multiple lines indented by 4 spaces -multi_line_output = 3 -include_trailing_comma=True -force_grid_wrap=0 -use_parentheses=True -line_length=88 -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 -default_section = THIRDPARTY -known_first_party = custom_components,tests -forced_separate = tests -combine_as_imports = true - -[mypy] -python_version = 3.7 -ignore_errors = true -follow_imports = silent -ignore_missing_imports = true -warn_incomplete_stub = true -warn_redundant_casts = true -warn_unused_configs = true diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/bandit.yaml b/tests/bandit.yaml deleted file mode 100644 index ebd284e..0000000 --- a/tests/bandit.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# https://bandit.readthedocs.io/en/latest/config.html - -tests: - - B108 - - B306 - - B307 - - B313 - - B314 - - B315 - - B316 - - B317 - - B318 - - B319 - - B320 - - B325 - - B602 - - B604 diff --git a/tests/test_init.py b/tests/test_init.py deleted file mode 100644 index 0f8c068..0000000 --- a/tests/test_init.py +++ /dev/null @@ -1,9 +0,0 @@ -"""Test component setup.""" -from homeassistant.setup import async_setup_component - -from custom_components.ute.const import DOMAIN - - -async def test_async_setup(hass): - """Test the component gets setup.""" - assert await async_setup_component(hass, DOMAIN, {}) is True