Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#513)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.9.2](astral-sh/ruff-pre-commit@v0.7.0...v0.9.2)
- [github.com/pre-commit/mirrors-clang-format: v19.1.0 → v19.1.7](pre-commit/mirrors-clang-format@v19.1.0...v19.1.7)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* ✨ ci(pre-commit): updated autoupdate to run quarterly

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Andreas Kluge Svendsrud <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and kluge7 authored Jan 21, 2025
1 parent 7469764 commit 05d6431
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
- id: requirements-txt-fixer
# Python hooks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.9.2
hooks:
- id: ruff-format
- id: ruff
Expand Down Expand Up @@ -70,7 +70,7 @@ repos:
pass_filenames: true
# C++ hooks
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.0
rev: v19.1.7
hooks:
- id: clang-format
args: [--style=file]
Expand All @@ -79,4 +79,7 @@ repos:
rev: v2.3.0
hooks:
- id: codespell
args: ['--write-changes', '--ignore-words-list=theses']
args: ['--write-changes', '--ignore-words-list=theses,fom']

ci:
autoupdate_schedule: quarterly
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class TeensyCommunicationUDP:

@classmethod
def init_communication(cls, frequencies_of_interest: list[tuple[int, int]]) -> None:
assert (
len(frequencies_of_interest) == 10
), "Frequency list has to have exactly 10 entries"
assert len(frequencies_of_interest) == 10, (
"Frequency list has to have exactly 10 entries"
)

_frequencies_of_interest = frequencies_of_interest

Expand Down Expand Up @@ -243,9 +243,9 @@ def _send_frequencies_of_interest(
) -> None:
try:
# Format (CSV): xxx,x,xx,x...,x (frequency list comes first, then variances)
assert (
len(frequencies_of_interest) == 10
), "List of frequencies has to be ten entries long!"
assert len(frequencies_of_interest) == 10, (
"List of frequencies has to be ten entries long!"
)

# ten messages in total, one message for each entry to work around the max packet size
for frequency, variance in frequencies_of_interest:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def test_anti_windup(self):
print("Anti windup test passed")

def test_max_force(self):
assert (
0 <= controller.max_force <= 99.9
), "Max force must be in the range [0, 99.9]."
assert 0 <= controller.max_force <= 99.9, (
"Max force must be in the range [0, 99.9]."
)

0 comments on commit 05d6431

Please sign in to comment.