mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Update pylint to 2.17.0 (#89377)
* Update pylint to 2.17.0 * Remove unused pylint disable comments
This commit is contained in:
parent
7982f713e1
commit
bfb89fd8f2
@ -1940,10 +1940,7 @@ def _latest_short_term_statistics_stmt(
|
|||||||
.group_by(StatisticsShortTerm.metadata_id)
|
.group_by(StatisticsShortTerm.metadata_id)
|
||||||
).subquery()
|
).subquery()
|
||||||
),
|
),
|
||||||
(
|
(StatisticsShortTerm.metadata_id == most_recent_statistic_row.c.metadata_id)
|
||||||
StatisticsShortTerm.metadata_id # pylint: disable=comparison-with-callable
|
|
||||||
== most_recent_statistic_row.c.metadata_id
|
|
||||||
)
|
|
||||||
& (StatisticsShortTerm.start_ts == most_recent_statistic_row.c.start_max),
|
& (StatisticsShortTerm.start_ts == most_recent_statistic_row.c.start_max),
|
||||||
)
|
)
|
||||||
return stmt
|
return stmt
|
||||||
|
@ -67,7 +67,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
|||||||
raise ConfigEntryNotReady(
|
raise ConfigEntryNotReady(
|
||||||
f"Error while trying to setup {host.api.host}:{host.api.port}: {str(err)}"
|
f"Error while trying to setup {host.api.host}:{host.api.port}: {str(err)}"
|
||||||
) from err
|
) from err
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception:
|
||||||
await host.stop()
|
await host.stop()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ from .dataset_store import async_get_store
|
|||||||
from .discovery import async_read_zeroconf_cache
|
from .discovery import async_read_zeroconf_cache
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from pyroute2 import NDB # pylint: disable=no-name-in-module
|
from pyroute2 import NDB
|
||||||
|
|
||||||
|
|
||||||
class Neighbour(TypedDict):
|
class Neighbour(TypedDict):
|
||||||
@ -121,7 +121,7 @@ def _get_routes_and_neighbors():
|
|||||||
NDB,
|
NDB,
|
||||||
)
|
)
|
||||||
|
|
||||||
with NDB() as ndb: # pylint: disable=not-callable
|
with NDB() as ndb:
|
||||||
routes, reverse_routes = _get_possible_thread_routes(ndb)
|
routes, reverse_routes = _get_possible_thread_routes(ndb)
|
||||||
neighbours = _get_neighbours(ndb)
|
neighbours = _get_neighbours(ndb)
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ def can_use_pidfd() -> bool:
|
|||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
pid = os.getpid()
|
pid = os.getpid()
|
||||||
os.close(os.pidfd_open(pid, 0)) # pylint: disable=no-member
|
os.close(os.pidfd_open(pid, 0))
|
||||||
except OSError:
|
except OSError:
|
||||||
# blocked by security policy like SECCOMP
|
# blocked by security policy like SECCOMP
|
||||||
return False
|
return False
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
-c homeassistant/package_constraints.txt
|
-c homeassistant/package_constraints.txt
|
||||||
-r requirements_test_pre_commit.txt
|
-r requirements_test_pre_commit.txt
|
||||||
astroid==2.14.2
|
astroid==2.15.0
|
||||||
codecov==2.1.12
|
codecov==2.1.12
|
||||||
coverage==7.2.1
|
coverage==7.2.1
|
||||||
freezegun==1.2.2
|
freezegun==1.2.2
|
||||||
@ -15,7 +15,7 @@ mock-open==1.4.0
|
|||||||
mypy==1.0.1
|
mypy==1.0.1
|
||||||
pre-commit==3.1.0
|
pre-commit==3.1.0
|
||||||
pydantic==1.10.5
|
pydantic==1.10.5
|
||||||
pylint==2.16.4
|
pylint==2.17.0
|
||||||
pylint-per-file-ignores==1.1.0
|
pylint-per-file-ignores==1.1.0
|
||||||
pipdeptree==2.5.0
|
pipdeptree==2.5.0
|
||||||
pytest-asyncio==0.20.3
|
pytest-asyncio==0.20.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user