Skip to content

Commit

Permalink
remove shebangs
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Dec 15, 2024
1 parent 640042f commit 755eccc
Show file tree
Hide file tree
Showing 60 changed files with 4 additions and 60 deletions.
1 change: 0 additions & 1 deletion cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the Resideo TCC API."""
1 change: 0 additions & 1 deletion cli/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async."""

from __future__ import annotations
Expand Down
2 changes: 0 additions & 2 deletions cli/client.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python3
"""evohomeasync - a CLI utility that is not a core part of the library."""

# flake8: noqa: T201

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
"""A CLI for the evohome-sync2 library."""

import sys
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ ignore = [


[tool.ruff.lint.per-file-ignores]
"./tests/*" = ["S101"] # Assertions are removed when Python is run with optimization
"./client.py" = ["EXE001"] # shebang directive in a file that is not executable
"./cli/client.py" = ["EXE001", "T201"] # prints should typically be omitted
"./src/*/schemas/typedefs.py" = ["UP040"] # PEP695 says use type rather that TypeAlias
"./tests/*" = ["S101"] # Assertions are removed when Python is run with optimization


[tool.ruff.lint.flake8-import-conventions.extend-aliases]
Expand Down
1 change: 0 additions & 1 deletion src/evohome/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the Resideo TCC API."""

from __future__ import annotations
1 change: 0 additions & 1 deletion src/evohome/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v0 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohome/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohome/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""An async client for the v2 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohome/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v0 Resideo TCC API.
It is an async port of https://github.com/watchforstock/evohome-client
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v0 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync/entities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Provides handling of TCC v0 locations."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""An async client for the v0 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v0 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync/schemas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v0 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v2 Resideo TCC API.
It is an async port of https://github.com/watchforstock/evohome-client
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v2 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v2 Resideo TCC API."""

from typing import Final
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/control_system.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Provides handling of TCC temperature control systems."""

# TODO: add set_mode() for non-evohome modes (e.g. "Heat", "Off")
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""An async client for the v2 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/gateway.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Provides handling of TCC gateways."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/hotwater.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Provides handling of TCC DHW zones."""

# TODO: add set_mode() for non-evohome modes
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/location.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Provides handling of TCC v2 locations."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync provides an async client for the v2 Resideo TCC API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/schemas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync schema - for vendor's RESTful API JSON."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/schemas/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync schema - for Account JSON of RESTful API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/schemas/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync schema - for Config JSON of RESTful API."""
# ruff: noqa: E501
# ruff: line-length=120
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/schemas/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync schema - shared constants."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/schemas/schedule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync schema - for RESTful API Account JSON."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/schemas/status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync schema - for Status JSON of RESTful API."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/schemas/typedefs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohomeasync schema - shared types (WIP)."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion src/evohomeasync2/zone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Provides handling of TCC zones (heating and DHW)."""

# TODO: add provision for cooling zones, when vendor's API adds support for such
Expand Down
1 change: 0 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env python3
"""Tests for evohome-async."""
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env python3
"""Tests for evohome-async."""
1 change: 0 additions & 1 deletion tests/tests/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async - helper functions."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async - validate the schema of HA's debug JSON (newer ver)."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/test_installs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async - validate the schemas of vendor's RESTful JSON."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/test_schedules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async - validate the schedule schemas."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/test_schemas_0.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async - validate the schema of HA's debug JSON (older ver)."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/test_schemas_1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async - validate the schema of HA's debug JSON (newer ver)."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/test_systems_0.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Tests for evohome-async - validate the schemas of vendor's RESTful JSON."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/test_v0_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the v0 API session manager."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests/test_v2_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the v2 API token manager."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env python3
"""Mocked vendor server for provision via a hacked aiohttp."""
1 change: 0 additions & 1 deletion tests/tests_rf/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - helper functions."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - test config."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/faked_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Mocked vendor RESTful API via a hacked aiohttp."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/faked_server/aiohttp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""A hacked aiohttp to provide a faked server."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/faked_server/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Mocked vendor RESTful API via a hacked aiohttp."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/faked_server/vendor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""Mocked vendor server for provision via a hacked aiohttp."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/test_v0_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the handling of vendor APIs (URLs) for Authentication.

This is used to:
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/test_v0_urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the handling of vendor APIs (URLs) for Authorization.

This is used to:
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/test_v2_apis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the evohome-async APIs (methods)."""

from __future__ import annotations
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/test_v2_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the handling of vendor APIs (URLs) for Authentication.

This is used to:
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/test_v2_sked.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the handling of vendor APIs (URLs) for Authorization.

This is used to:
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/test_v2_task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the handling of vendor APIs (URLs) for task management.

This is used to:
Expand Down
1 change: 0 additions & 1 deletion tests/tests_rf/test_v2_urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""evohome-async - validate the handling of vendor APIs (URLs) for Authorization.

This is used to:
Expand Down

0 comments on commit 755eccc

Please sign in to comment.