Skip to content

Commit

Permalink
Linted the whole codebase! phew!
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandMoff100 committed Feb 14, 2022
1 parent dd3aba2 commit c02ed22
Show file tree
Hide file tree
Showing 19 changed files with 377 additions and 284 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ repos:
- repo: https://github.com/pre-commit/mirrors-mypy
hooks:
- id: mypy
additional_dependencies:
- types-requests
- types-simplejson
rev: 'v0.931'
- repo: https://github.com/pre-commit/pre-commit-hooks
hooks:
Expand All @@ -22,4 +25,5 @@ repos:
- repo: https://github.com/PyCQA/pylint
rev: 'v2.12.2'
hooks:
- id: pylint
- id: pylint
language: system
2 changes: 1 addition & 1 deletion homeassistant_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Imports all module stuff for convenience."""
from ._async import AsyncClient
from .client import Client, RawClient
from .client import Client
from .errors import (
APIConfigurationError,
EndpointNotFoundError,
Expand Down
1 change: 1 addition & 0 deletions homeassistant_api/_async/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Imports obejcts from the async sub-module for convenience."""
from .asyncclient import AsyncClient
from .models import AsyncDomain, AsyncEntity, AsyncEvent, AsyncGroup, AsyncService

0 comments on commit c02ed22

Please sign in to comment.