Skip to content

Commit

Permalink
build(deps-dev): bump flake8 from 4.0.1 to 5.0.1 (#526)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump flake8 from 4.0.1 to 5.0.1

Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 5.0.1.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](PyCQA/flake8@4.0.1...5.0.1)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: typos and flake8 upgrade fix

Signed-off-by: Tomer Figenblat <tomer.figenblat@gmail.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tomer Figenblat <tomer.figenblat@gmail.com>
  • Loading branch information
dependabot[bot] and TomerFi committed Aug 1, 2022
1 parent d58b12f commit 45f88db
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
58 changes: 29 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ exclude = [
black = "^22.6"
codecov = "^2.1.12"
doc8 = "^0.11.2"
flake8 = "^4.0.1"
flake8 = "^5.0.1"
flake8-docstrings = "^1.6.0"
isort = "^5.10.1"
mypy = "^0.971"
Expand Down
6 changes: 3 additions & 3 deletions src/aioswitcher/device/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ def sign_packet_with_crc_key(hex_packet: str) -> str:


def minutes_to_hexadecimal_seconds(minutes: int) -> str:
"""Encode minutes to an hexadecimal packed as little endian unsinged int.
"""Encode minutes to an hexadecimal packed as little endian unsigned int.
Args:
minutes: minutes to encode.
Return:
Hexadecimal representation of the mintues argument.
Hexadecimal representation of the minutes argument.
"""
return hexlify(pack("<I", minutes * 60)).decode()


def timedelta_to_hexadecimal_seconds(full_time: datetime.timedelta) -> str:
"""Encode timedelta as seconds to an hexadecimal packed as little endian unsinged int.
"""Encode timedelta as seconds to an hexadecimal packed as little endian unsigned.
Args:
full_time: timedelta time between 1 and 24 hours, seconds are ignored.
Expand Down

0 comments on commit 45f88db

Please sign in to comment.