Skip to content

Commit 418dd79

Browse files
authored
Merge pull request #302 from thedropbears/ruff-parenthesize-chained-operators
Enable parenthesize-chained-operators lint rule
2 parents ce812f5 + e31b7d1 commit 418dd79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

controllers/algae_shooter.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ def shoot(self) -> None:
3636
if self.reef_intake.is_executing:
3737
return
3838
if (
39-
self.use_ballistics
40-
and not self.ballistics_component.is_in_range()
41-
or not self.ballistics_component.is_aligned()
42-
):
39+
self.use_ballistics and not self.ballistics_component.is_in_range()
40+
) or not self.ballistics_component.is_aligned():
4341
return
4442
self.engage()
4543

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ select = [
5757
"T20",
5858
# perflint
5959
"PERF",
60+
# ruff specific
61+
"RUF021", # parenthesise chained and/or
6062
]
6163
ignore = [
6264
"E501", # long lines

0 commit comments

Comments
 (0)