Skip to content

Commit f8f9312

Browse files
authored
Merge pull request #188 from CWRUbotix/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents e7be5b7 + 86e99a8 commit f8f9312

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
44
# Ruff version.
5-
rev: v0.11.13
5+
rev: v0.12.0
66
hooks:
77
# Run the linter.
88
- id: ruff
@@ -12,7 +12,7 @@ repos:
1212
- id: ruff-format
1313
exclude: src/surface/photosphere/photosphere/projection_matrix/.*
1414
- repo: https://github.com/pre-commit/mirrors-clang-format
15-
rev: v20.1.5
15+
rev: v20.1.6
1616
hooks:
1717
- id: clang-format
1818
types_or: [c++, c]
@@ -22,6 +22,6 @@ repos:
2222
hooks:
2323
- id: trailing-whitespace
2424
- repo: https://github.com/google/yamlfmt
25-
rev: v0.17.0
25+
rev: v0.17.1
2626
hooks:
2727
- id: yamlfmt

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ line-length = 100
2121
flake8-quotes.inline-quotes='single'
2222
extend-select = ["ALL"]
2323
fixable = ["ALL"]
24-
ignore = ["D100", "D101", "D102", "D103", "D104", "D107", "T201", "FIX002", "TD003", "TD002", "TRY003", "EM101", "EM102", "RET504", "D211", "COM812", "ISC001", "ERA001", "S602", "S603", "D205", "UP040"]
24+
ignore = ["D100", "D101", "D102", "D103", "D104", "D107", "T201", "FIX002", "TD003", "TD002", "TRY003", "EM101",
25+
"EM102", "RET504", "D211", "COM812", "ISC001", "ERA001", "S602", "S603", "D205", "UP040",
26+
"UP046" # Ruff pre-commit wants updated generics notation but ROS2's Mypy tests don't support it
27+
# Ignore Ruff for now, change this when we move to next Ubuntu LTS or pre-commit Mpypy
28+
]
2529

2630
[tool.ruff.lint.pydocstyle]
2731
convention = "numpy"

src/pi/manipulators/manipulators/old_servo_dry_run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
lgpio.gpio_claim_output(gpio_handle, SERVO_PIN)
1111

1212

13-
def test_gpio(width: int, freq: int = 50) -> None:
13+
def run_gpio(width: int, freq: int = 50) -> None:
1414
lgpio.tx_servo(gpio_handle, SERVO_PIN, width, freq)
1515

1616

@@ -19,15 +19,15 @@ def main() -> None:
1919
print('Starting loop')
2020
while True:
2121
print('one way')
22-
test_gpio(1900, 50)
22+
run_gpio(1900, 50)
2323
time.sleep(2)
2424

2525
print('off')
26-
test_gpio(1500, 200)
26+
run_gpio(1500, 200)
2727
time.sleep(2)
2828

2929
print('other way')
30-
test_gpio(1100, 400)
30+
run_gpio(1100, 400)
3131
time.sleep(2)
3232

3333
except KeyboardInterrupt:

0 commit comments

Comments
 (0)